/* Article and editor-preview typography; keep desktop chrome styles separate. */
.notes-desktop .note-detail {
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  margin-inline: auto;
  padding-bottom: 28px;
}

.notes-desktop .note-detail .note-image,
.notes-desktop .note-rich-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 24px auto;
}

.notes-desktop .note-rich-body {
  font-size: 17px;
  line-height: 2;
  overflow-wrap: anywhere;
  color: #252936;
}

.notes-desktop .note-rich-body p { margin-block: 0 18px; }
.notes-desktop .note-rich-body h2,
.notes-desktop .note-rich-body h3 {
  margin-block: 40px 18px;
  line-height: 1.6;
  color: #22275c;
}

.notes-desktop .note-detail > h1 { color: #22275c; line-height: 1.65; }
.notes-desktop .note-rich-body strong { color: inherit; font-weight: 700; }
.notes-desktop .note-rich-body a { color: #126b70; text-underline-offset: 4px; }
.notes-desktop .note-rich-body a:hover { color: #194b50; }
.notes-desktop .note-rich-body blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border-inline-start: 4px solid #b38820;
  border-radius: 8px;
  background: #fff4cd;
  color: #4d3c13;
}
.notes-desktop .note-rich-body blockquote > :last-child { margin-bottom: 0; }
.notes-desktop .note-rich-body ol { padding-inline-start: 2.2rem; margin-block: 22px; }
.notes-desktop .note-rich-body ol > li {
  margin-block: 14px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #b5d4d3;
}
.notes-desktop .note-rich-body ol > li::marker {
  color: #22275c;
  font-size: 1.12em;
  font-weight: 800;
}
.notes-desktop .note-rich-body .note-sources-heading {
  margin-top: 28px;
  font-size: 16px;
  color: #52606d;
}
.notes-desktop .note-rich-body .note-sources-heading + ul {
  font-size: 14px;
  line-height: 1.9;
  color: #52606d;
}
.notes-desktop .note-rich-body .note-sources-heading + ul a { color: #52606d; }

.notes-desktop .note-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 24px;
}

.notes-desktop .note-rich-body table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  line-height: 1.9;
}

.notes-desktop .note-rich-body th,
.notes-desktop .note-rich-body td {
  border: 1px solid #cfcab9;
  padding: 12px 16px;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.notes-desktop .note-rich-body th { background: #eae6d8; }
.notes-desktop .note-rich-body tbody tr:nth-child(even) {
  background: #f5f1e6;
}

.notes-desktop .note-rich-body code {
  direction: ltr;
  unicode-bidi: isolate;
}

.notes-desktop [dir="rtl"] { text-align: right; }
.notes-desktop [dir="ltr"] { text-align: left; }
.notes-desktop .note-file > [dir],
.notes-desktop .notes-tree-item > [dir] {
  unicode-bidi: isolate;
  min-width: 0;
}
.notes-desktop .note-rich-body pre {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
  overflow-x: auto;
}
.notes-desktop .note-media-caption {
  display: block;
  margin-block: 8px 20px;
  font-size: 14px;
  color: #52606d;
}
.notes-desktop .note-rich-body .note-video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-block: 20px 8px;
}

.notes-desktop .note-rich-body :not(pre) > code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  .notes-desktop .note-rich-body { font-size: 16px; }
  .notes-desktop .note-rich-body th,
  .notes-desktop .note-rich-body td { padding: 10px 12px; }
}
