#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6,
#write p {
  position: relative;
  font-family: Helvetica, "Segoe UI", Arial, sans-serif, 宋体;
}

html {
  overflow-x: initial !important;
}

:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --select-text-bg-color: #b5d6fc;
  --select-text-font-color: auto;
  --monospace: "Lucida Console", Consolas, "Courier", monospace;
  --title-bar-height: 20px;
}

html {
  font-size: 14px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  white-space: pre-wrap;
}

body {
  margin: 0px;
  padding: 0px;
  height: auto;
  inset: 0px;
  font-size: 1rem;
  line-height: 1.42857;
  overflow-x: hidden;
  background: inherit;
}

iframe {
  margin: auto;
}

a.url {
  word-break: break-all;
}

a:active,
a:hover {
  outline: 0px;
}

::selection {
  text-shadow: none;
  background: var(--select-text-bg-color);
  color: var(--select-text-font-color);
}

#write {
  margin: 0px auto;
  height: auto;
  width: inherit;
  word-break: normal;
  overflow-wrap: break-word;
  position: relative;
  white-space: normal;
  overflow-x: visible;
  padding-top: 36px;
}

.for-image #write {
  padding-left: 8px;
  padding-right: 8px;
}

body.boas {
  padding-left: 30px;
  padding-right: 30px;
}

.boas li,
.boas p {
  white-space: pre-wrap;
}

@media screen and (max-width: 500px) {
  body.boas {
    padding-left: 0px;
    padding-right: 0px;
  }

  #write {
    padding-left: 20px;
    padding-right: 20px;
  }
}

#write ol,
#write ul {
  position: relative;
}

img {
  max-width: 100%;
  vertical-align: middle;
  image-orientation: from-image;
}

*,
::after,
::before {
  box-sizing: border-box;
}

#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6,
#write p {
  width: inherit;
}

#write h1,
#write h2,
#write h3,
#write h4,
#write h5,
#write h6,
#write p {
  position: relative;
}

p {
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  break-after: avoid-page;
  break-inside: avoid;
  orphans: 4;
}

p {
  orphans: 4;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

a {
  cursor: pointer;
}

svg {
  break-inside: avoid;
}

li div {
  padding-top: 0px;
}

blockquote {
  margin: 1rem 0px;
}

li p {
  margin: 0.5rem 0px;
}

li {
  margin: 0px;
  position: relative;
}

blockquote > :last-child {
  margin-bottom: 0px;
}

blockquote > :first-child,
li > :first-child {
  margin-top: 0px;
}

@media print {
  body,
  html {
    border: 1px solid transparent;
    height: 99%;
    break-after: avoid;
    break-before: avoid;
    font-variant-ligatures: no-common-ligatures;
  }

  #write {
    margin-top: 0px;
    border-color: transparent !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  .boas * {
    -webkit-print-color-adjust: exact;
  }

  .boas #write {
    break-after: avoid;
  }

  .boas #write::after {
    height: 0px;
  }

  #write > p:nth-child(1) {
    margin-top: 0px;
  }
}

a img,
img a {
  cursor: pointer;
}

p > img:only-child {
  display: block;
  margin: auto;
}

p > .md-image:only-child {
  display: inline-block;
  width: 100%;
}

[contenteditable="true"]:active,
[contenteditable="true"]:focus,
[contenteditable="false"]:active,
[contenteditable="false"]:focus {
  outline: 0px;
  box-shadow: none;
}

.md-toc {
  min-height: 3.58rem;
  position: relative;
  font-size: 0.9rem;
  border-radius: 10px;
}

.md-toc-content {
  position: relative;
  margin-left: 0px;
}

.md-toc-content::after,
.md-toc::after {
  display: none;
}

.md-toc-item {
  display: block;
  color: rgb(65, 131, 196);
}

.md-toc-item a {
  text-decoration: none;
}

.md-toc-inner:hover {
  text-decoration: underline;
}

.md-toc-inner {
  display: inline-block;
  cursor: pointer;
}

.md-toc-h1 .md-toc-inner {
  margin-left: 0px;
  font-weight: 700;
}

.md-toc-h2 .md-toc-inner {
  margin-left: 2em;
}

.md-toc-h3 .md-toc-inner {
  margin-left: 4em;
}

.md-toc-h4 .md-toc-inner {
  margin-left: 6em;
}

.md-toc-h5 .md-toc-inner {
  margin-left: 8em;
}

.md-toc-h6 .md-toc-inner {
  margin-left: 10em;
}

@media screen and (max-width: 48em) {
  .md-toc-h3 .md-toc-inner {
    margin-left: 3.5em;
  }

  .md-toc-h4 .md-toc-inner {
    margin-left: 5em;
  }

  .md-toc-h5 .md-toc-inner {
    margin-left: 6.5em;
  }

  .md-toc-h6 .md-toc-inner {
    margin-left: 8em;
  }
}

a.md-toc-inner {
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
}

tt {
  font-family: var(--monospace);
}

[lang="flow"] svg,
[lang="mermaid"] svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
  width: 100%;
  border: none;
}

@media print {
  .boas h1,
  .boas h2,
  .boas h3,
  .boas h4,
  .boas h5,
  .boas h6 {
    break-inside: avoid;
  }
}

html {
  font-size: 19px;
}

html,
body {
  margin: auto;
  background: #fefefe;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Vollkorn", Palatino, Times;
  color: #333;
  line-height: 1.4;
  text-align: justify;
}

#write {
  max-width: 960px;
  margin: 0 auto;
  margin-bottom: 2em;
  line-height: 1.53;
  padding-top: 40px;
}

@media only screen and (min-width: 1400px) {
  #write {
    max-width: 1100px;
  }
}

@media print {
  html {
    font-size: 13px;
  }
}

/* Typography
-------------------------------------------------------- */

#write > h1:first-child,
h1 {
  margin-top: 1.6em;
  font-weight: normal;
}

h1 {
  font-size: 3em;
}

h2 {
  margin-top: 2em;
  font-weight: normal;
}

h3 {
  font-weight: normal;
  font-style: italic;
  margin-top: 3em;
}

h1,
h2,
h3 {
  text-align: center;
}

h2:after {
  border-bottom: 1px solid #2f2f2f;
  content: "";
  width: 100px;
  display: block;
  margin: 0 auto;
  height: 1px;
}

h1 + h2,
h2 + h3 {
  margin-top: 0.83em;
}

p {
  margin-top: 0;
  -webkit-hypens: auto;
  -moz-hypens: auto;
  hyphens: auto;
}

ul {
  list-style: square;
  padding-left: 1.2em;
}

ol {
  padding-left: 1.2em;
}

@media print {
  ol {
    padding-left: 40px;
  }
}

blockquote {
  margin-left: 1em;
  padding-left: 1em;
  border-left: 1px solid #ddd;
}

a {
  color: #2484c1;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a img {
  border: none;
}

h1 a,
h1 a:hover {
  color: #333;
  text-decoration: none;
}

.md-toc {
  margin-top: 40px;
}

.md-toc-content {
  padding-bottom: 20px;
}
