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;
}

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;
}

body {
    margin: 0px;
    padding: 0px;
    height: auto;
    bottom: 0px;
    top: 0px;
    left: 0px;
    right: 0px;
    font-size: 1rem;
    line-height: 1.42857143;
    overflow-x: hidden;
    background-image: inherit;
    background-size: inherit;
    background-attachment: inherit;
    background-origin: inherit;
    background-clip: inherit;
    background-color: inherit;
    tab-size: 4;
    background-position: inherit inherit;
    background-repeat: inherit inherit;
}

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

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

.in-text-selection, ::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;
    word-wrap: break-word;
    position: relative;
    white-space: normal;
    overflow-x: visible;
    padding-top: 40px;
}

#write.first-line-indent p {
    text-indent: 2em;
}

#write.first-line-indent li p, #write.first-line-indent p * {
    text-indent: 0px;
}

#write.first-line-indent li {
    margin-left: 2em;
}

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

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

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

#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p, #write pre {
    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: 2;
}

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;
}

a {
    cursor: pointer;
}

div.hr:focus {
    cursor: none;
}

#write.fences-no-line-wrapping pre {
    white-space: pre;
}

#write pre.ty-contain-cm {
    white-space: normal;
}

#write.fences-no-line-wrapping .md-fences.mock-cm {
    white-space: pre;
    overflow-x: auto;
}

.footnotes {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 1em;
    margin-bottom: 1em;
}

.footnotes + .footnotes {
    margin-top: 0px;
}

li div {
    padding-top: 0px;
}

blockquote {
    margin: 1rem 0px;
}

li .mathjax-block, li p {
    margin: 0.5rem 0px;
}

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

.footnotes-area {
    color: rgb(136, 136, 136);
    margin-top: 0.714rem;
    padding-bottom: 0.143rem;
    white-space: normal;
}

.footnote-line {
    margin-top: 0.714em;
    font-size: 0.7em;
}

:root {
    --active-file-bg-color: #dadada;
    --active-file-bg-color: rgba(32, 43, 51, 0.63);
    --active-file-text-color: white;
    --bg-color: #f3f2ee;
    --text-color: #1f0909;
    --control-text-color: #444;
    --rawblock-edit-panel-bd: #e5e5e5;

    --select-text-bg-color: rgba(32, 43, 51, 0.63);
    --select-text-font-color: white;
}

pre {
    --select-text-bg-color: #36284e;
    --select-text-font-color: #fff;
}

html {
    font-size: 16px;
}

html, body {
    background-color: #f3f2ee;
    font-family: "PT Serif", 'Times New Roman', Times, serif;
    color: #1f0909;
    line-height: 1.5em;
}

#write {
    max-width: 40em;
}

ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

ul li {
    list-style-type: disc;
    list-style-position: outside;
}

ol,
ul {
    list-style: none;
}

/* styles */

/* ====== */

/* headings */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

h1 {
    font-size: 1.875em;
    /*30 / 16*/
    line-height: 1.6em;
    /* 48 / 30*/
    margin-top: 2em;
}

h2,
h3 {
    font-size: 1.3125em;
    /*21 / 16*/
    line-height: 1.15;
    /*24 / 21*/
    margin-top: 2.285714em;
    /*48 / 21*/
    margin-bottom: 1.15em;
    /*24 / 21*/
}

h3 {
    font-weight: normal;
}

h4 {
    font-size: 1.125em;
    /*18 / 16*/
    margin-top: 2.67em;
    /*48 / 18*/
}

h5,
h6 {
    font-size: 1em;
    /*16*/
}

h1 {
    border-bottom: 1px solid;
    margin-bottom: 1.875em;
    padding-bottom: 0.8125em;
}

/* links */

a {
    text-decoration: none;
    color: #065588;
}

a:hover,
a:active {
    text-decoration: underline;
}

/* block spacing */

p,
blockquote,
.md-fences {
    margin-bottom: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1.5em;
}

/* lists */

ul,
ol {
    margin: 0 0 1.5em 1.5em;
}

/* tables */
.md-meta, .md-before, .md-after {
    color: #999;
}
/* some fixes */

h1 {
    line-height: 1.3em;
    font-weight: normal;
    margin-bottom: 0.5em;
}

p + ul,
p + ol {
    margin-top: .5em;
}

h3 + ul,
h4 + ul,
h5 + ul,
h6 + ul,
h3 + ol,
h4 + ol,
h5 + ol,
h6 + ol {
    margin-top: .5em;
}

li > ul,
li > ol {
    margin-top: inherit;
    margin-bottom: 0;
}

li ol > li {
    list-style-type: lower-alpha;
}

li li ol > li {
    list-style-type: lower-roman;
}

h2,
h3 {
    margin-bottom: .75em;
}
h1 {
    border-color: #c5c5c5;
}

header, .context-menu, .megamenu-content, footer {
    font-family: "PT Serif", 'Times New Roman', Times, serif;
    color: #1f0909;
}