:root { --md-text-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.md-typeset { line-height: 1.8; overflow-wrap: break-word; }
.md-typeset p, .md-typeset li { text-align: justify; text-justify: inter-character; }

/* figures */
.md-typeset figure { max-width: 100%; }
.md-typeset figure img { max-width: 100%; height: auto; background: #fff; border-radius: 4px; cursor: zoom-in; }
[data-md-color-scheme="slate"] .md-typeset figure img { padding: 6px; }
.md-typeset figcaption { font-size: .8rem; max-width: 100%; line-height: 1.6; }
.md-typeset img { max-width: 100%; height: auto; }

/* tables: always scroll inside their own wrapper */
.md-typeset table:not([class]) { font-size: .72rem; }
.md-typeset__scrollwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th { min-width: 4.5em; }

/* math: display formulas scroll horizontally, long inline formulas too */
.md-typeset div.arithmatex { overflow-x: auto; overflow-y: hidden; max-width: 100%; -webkit-overflow-scrolling: touch; }
.md-typeset div.arithmatex > mjx-container { margin: .6em 0 !important; padding: .2em 0; }
mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; max-width: 100%; }
mjx-container.wide-inline { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; }
mjx-assistive-mml { max-width: 100%; }

/* code */
.md-typeset pre > code { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* small screens */
@media screen and (max-width: 44.9375em) {
  .md-typeset { font-size: .82rem; line-height: 1.85; }
  .md-typeset h1 { font-size: 1.6em; margin-bottom: .8em; }
  .md-typeset h2 { font-size: 1.3em; }
  .md-typeset h3 { font-size: 1.12em; }
  .md-typeset table:not([class]) { font-size: .68rem; }
  .md-typeset .admonition, .md-typeset details { font-size: .78rem; }
  .md-typeset pre > code { font-size: .72rem; }
  .md-typeset figcaption { font-size: .74rem; }
  .md-typeset p, .md-typeset li { text-align: left; }
  .md-typeset .md-button { display: block; text-align: center; margin: .4em 0; }
}
