/* Keep each article's original typography, padding, checkout, and document scroll. */
body.article-chat-page {
  --article-chat-space: 0px;
  box-sizing: border-box;
  width: calc(100% - var(--article-chat-space));
  margin-right: var(--article-chat-space);
}
.article-chat-page .trollbox,
.article-chat-page .trollbox * { box-sizing: border-box; }
.article-chat-page .trollbox { line-height: normal; text-align: left; letter-spacing: normal; }
.article-chat-page > .trollbox-toggle {
  position: fixed;
  z-index: 1002;
  right: calc(var(--article-chat-space) + 16px);
  top: 12px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 3px;
  background: #101010;
  color: #ddd;
  font: 12px/1.5 Arial, Helvetica, sans-serif;
}
@media (min-width: 1040px) {
  body.article-chat-page:not([data-chat-open="false"]) { --article-chat-space: var(--trollbox-width); }
  .article-chat-page > .page-shell { padding-inline: 24px; }
}
@media (max-width: 1039px) {
  body.article-chat-page[data-chat-open="true"] { margin-bottom: var(--trollbox-mobile-height); }
  .article-chat-page > .trollbox-toggle {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .article-chat-page .trollbox {
    width: 100%;
    height: var(--trollbox-mobile-height);
    min-height: 0;
  }
}
