/* Editorial closing quote: italic serif text with inline punctuation. */
.plain-page .plain-next .plain-quote-ending {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  margin: 0;
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(20px, 3vw, 32px);
  color: var(--paper-ink);
  text-align: left;
}

.plain-page .plain-reader .plain-quote-words {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  quotes: none;
}

.plain-page .plain-quote-words::before,
.plain-page .plain-quote-words::after {
  content: none;
}

.plain-page .plain-quote-words .plain-quote-text {
  width: 100%;
  max-width: 17ch;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
  word-spacing: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.plain-page .plain-quote-text .plain-quote-mark {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1.05em;
  font-style: inherit;
  font-weight: inherit;
  line-height: 0;
  vertical-align: baseline;
  letter-spacing: normal;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Keep the final word with its closing mark without forcing horizontal overflow. */
.plain-page .plain-quote-tail {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

.plain-page .plain-quote-ending .plain-quote-reply {
  margin: clamp(18px, 2vw, 22px) 0 0;
  padding: 0;
  color: var(--paper-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

html[lang="en"] .plain-page .plain-quote-words .plain-quote-text {
  max-width: 18ch;
}

@media (forced-colors: active) {
  .plain-page .plain-next .plain-quote-ending,
  .plain-page .plain-quote-ending .plain-quote-reply {
    color: CanvasText;
  }
}

@media print {
  .plain-page .plain-next .plain-quote-ending {
    max-width: 120mm;
    padding-top: 18pt;
    padding-bottom: 10pt;
    break-inside: avoid;
  }
  .plain-page .plain-quote-words .plain-quote-text {
    font-size: 26pt;
  }
  .plain-page .plain-quote-ending .plain-quote-reply {
    margin-top: 12pt;
    font-size: 14pt;
  }
}
