/* Loaded only by the WeChat reader, only when printing. */
@page {
  margin: 16mm;

  /* Override Chromium's generated headers/footers without losing page margins. */
  @top-left {
    content: "";
  }
  @top-center {
    content: "";
  }
  @top-right {
    content: "";
  }
  @bottom-left {
    content: "";
  }
  @bottom-center {
    content: "";
  }
  @bottom-right {
    content: "";
  }
}

body > :not(#main-content),
#main-content > :not(.wx-article),
.wx-article > :not(.wx-article__body, .wx-article__denied) {
  display: none !important;
}

html,
body,
#main-content,
.wx-article,
.wx-article__body.html-text-style-wechat {
  background: white !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  float: none !important;
  height: auto !important;
  margin: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  padding: 0 !important;
  position: static !important;
  width: auto !important;
}

.wx-article__body .rich_media_content,
.wx-article__body .rich_media_wrp,
.wx-article__body .post__content,
.wx-article__body .post__content :is(div, figure, p, section, span, table),
.wx-article__body pre,
.wx-article__body table {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.wx-article__body :is(h1, h2, h3, h4, h5, h6) {
  break-after: avoid;
}

.wx-article__body p {
  orphans: 3;
  widows: 3;
}

.wx-article__body img {
  break-inside: avoid;
  height: auto !important;
  max-width: 100% !important;
}

.wx-article__body :is(audio, video, iframe, button) {
  display: none !important;
}

.wx-article__body a,
.wx-article__body a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.wx-article__body a[href]::after {
  content: none !important;
}

.wx-article__body .fb-hl {
  background: transparent !important;
  box-shadow: none !important;
}

.wx-article__body .fb-u--bookmark::before {
  content: none !important;
}
