/* Keep comments isolated from the typography and layout of each story portal. */
.story-comments {
  --comments-ink: #24483d;
  --comments-muted: #576b5f;
  --comments-border: #cdd7c9;
  box-sizing: border-box;
  width: min(calc(100% - 40px), 780px);
  margin: 56px auto 32px;
  padding: 34px 0 0;
  border-top: 1px solid var(--comments-border);
  color: var(--comments-ink);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.story-comments *, .story-comments *::before, .story-comments *::after { box-sizing: border-box; }
.story-comments [hidden] { display: none !important; }
.story-comments .story-comments__heading { margin: 0 0 12px; color: var(--comments-ink); font: 400 32px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: -.5px; }
.story-comments h3 { margin: 0 0 18px; color: var(--comments-ink); font: 400 24px/1.3 Georgia, 'Times New Roman', serif; letter-spacing: normal; }
.story-comments p { margin: 0 0 16px; max-width: none; }
.story-comments .story-comments__intro { color: var(--comments-muted); font-size: 15px; }
.story-comments .story-comments__list { list-style: none; padding: 0; margin: 24px 0; }
.story-comments .story-comments__list:empty { margin: 0; }
.story-comments .story-comments__item { list-style: none; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--comments-border); }
.story-comments .story-comments__item:first-child { padding-top: 8px; }
.story-comments .story-comments__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 9px; font-size: 14px; }
.story-comments .story-comments__name { color: var(--comments-ink); font-weight: 600; }
.story-comments time { font-size: 12px; color: var(--comments-muted); }
.story-comments .story-comments__body { margin: 0; color: var(--comments-ink); font: 16px/1.75 Georgia, 'Times New Roman', serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-comments .story-comments__empty { padding: 20px 0 4px; font-size: 14px; color: var(--comments-muted); }
.story-comments .story-comments__compose { margin-top: 30px; padding: 26px; background: #f2f4eb; border: 1px solid var(--comments-border); border-radius: 4px; }
.story-comments .story-comments__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.story-comments .story-comments__actions:empty { margin: 0; }
.story-comments .story-comments__button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; width: auto; margin: 0; padding: 10px 16px; border: 1px solid #9daf9c; border-radius: 3px; background: #fffefa; color: var(--comments-ink); font: 400 14px/1.5 Arial, Helvetica, sans-serif; letter-spacing: normal; text-transform: none; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.story-comments .story-comments__button:hover { background: #e7ece0; }
.story-comments .story-comments__button--primary { background: #24483d; border-color: #24483d; color: #fffefa; }
.story-comments .story-comments__button--primary:hover { background: #153a30; }
.story-comments button:disabled { opacity: .6; cursor: wait; }
.story-comments .story-comments__field { margin-bottom: 20px; min-width: 0; }
.story-comments label { display: block; margin: 0 0 6px; color: var(--comments-ink); font: 600 13px/1.5 Arial, Helvetica, sans-serif; }
.story-comments input, .story-comments textarea, .story-comments select { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 11px 12px; border: 1px solid #9daf9c; border-radius: 3px; background: #fffefa; color: var(--comments-ink); font: 16px/1.5 Arial, Helvetica, sans-serif; letter-spacing: normal; box-shadow: none; }
.story-comments input:disabled, .story-comments textarea:disabled { opacity: .7; }
.story-comments textarea { resize: vertical; min-height: 140px; }
.story-comments .story-comments__hint { margin: 7px 0 0; font: 12px/1.6 Arial, Helvetica, sans-serif; color: var(--comments-muted); }
.story-comments .story-comments__counter { margin: 5px 0 0; text-align: right; color: var(--comments-muted); font-size: 12px; }
.story-comments .story-comments__status { margin: 14px 0; font: 14px/1.6 Arial, Helvetica, sans-serif; color: var(--comments-muted); }
.story-comments .story-comments__status:empty { display: none; }
.story-comments .story-comments__status--error { padding: 12px 14px; border-left: 3px solid #a84925; background: #fff5e9; color: #773919; }
.story-comments .story-comments__moderation { margin-top: 30px; padding: 26px; border: 1px solid var(--comments-border); background: #fffefa; border-radius: 4px; }
.story-comments .story-comments__review-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.story-comments .story-comments__review-controls .story-comments__field { flex: 1 1 180px; margin: 0; }
.story-comments :is(a, button, input, textarea, select):focus-visible { outline: 3px solid #a84925; outline-offset: 4px; }
.story-comments .story-comments__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
@media (max-width: 520px) {
  .story-comments { margin-top: 38px; padding-top: 26px; }
  .story-comments .story-comments__heading { font-size: 28px; }
  .story-comments .story-comments__compose, .story-comments .story-comments__moderation { padding: 20px 16px; }
  .story-comments .story-comments__review-controls > .story-comments__button { width: 100%; }
}

.story-comments .story-comments__button--danger { color: #773919; border-color: #b97558; }

.story-comments .story-comments__pictures, .story-comments .story-comments__previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 18px; }
.story-comments .story-comments__media { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 3px; background: #e7ece0; }
.story-comments video.story-comments__media { grid-column: 1 / -1; background: #17221c; }
.story-comments .story-comments__preview { min-width: 0; padding: 10px; border: 1px solid var(--comments-border); border-radius: 3px; background: #fffefa; }
.story-comments .story-comments__preview .story-comments__media { height: 160px; object-fit: contain; }
.story-comments .story-comments__preview button { max-width: 100%; margin-top: 8px; font-size: 12px; }
.story-comments input[type="file"] { font-size: 13px; padding: 10px; }
.story-comments input[type="file"]::file-selector-button { min-height: 36px; padding: 6px 10px; margin-right: 10px; border: 1px solid #9daf9c; border-radius: 3px; background: #fffefa; color: var(--comments-ink); cursor: pointer; }

.story-comments .story-comments__attachments { display: grid; gap: 14px; margin-top: 18px; }
.story-comments .story-comments__pictures { margin-top: 0; }
