
.md-syntax { display: none; }
.md-caret-anchor { display: inline; }
.md-h1, .md-h2, .md-h3, .md-h4, .md-h5, .md-h6 { font-weight: 700; }
.md-h1 { font-size: 2.6em; }
.md-h2 { font-size: 2.2em; }
.md-h3 { font-size: 1.8em; }
.md-h4 { font-size: 1.5em; }
.md-h5 { font-size: 1.3em; color: #333; }
.md-h6 { font-size: 1.1em; color: #555; }
.md-code {
  font-family: 'Consolas', 'SFMono-Regular', monospace; font-size: 0.92em;
  background: rgba(0,0,0,0.07); border-radius: 3px; padding: 0 3px;
}
.md-blockquote { font-style: italic; color: #444; }
.md-quote-bar { display: table-cell; border-left: 3px solid rgba(0,0,0,0.22); padding-left: 8px; }
.md-hr { display: inline-block; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.22); line-height: 0.4; }
.md-link { color: #3b6fd6; }

.md-list-bullet { display: inline-block; width: 1.3em; text-align: center; }
.md-list-bullet::before { content: '•'; opacity: 0.85; }
.md-list-num { font-weight: 600; opacity: 0.85; }

.md-task { display: inline; }
.md-task-checkbox { cursor: pointer; vertical-align: middle; position: relative; top: 0.1em; margin: 0 0.35em 0 0.15em; }
.md-task-done { text-decoration: line-through; opacity: 0.55; }

.md-line { display: inline-table; width: 100%; }
.md-line-prefix { display: table-cell; white-space: pre; tab-size: 4; }
.md-line-text { display: table-cell; width: 100%; overflow-wrap: anywhere; }
.md-plain-indent { tab-size: 4; }

.node-image-block {
  display: inline-block; vertical-align: top; text-align: center;
  margin: 0 calc(-1 * var(--node-content-pad));
  width: calc(100% + 2 * var(--node-content-pad));
  line-height: 0;
  position: relative; z-index: -1;
}
.node-inline-img { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.node-inline-img img { display: block; -webkit-user-drag: none; user-select: none; box-sizing: border-box; border: 1px solid #000; pointer-events: auto; cursor: pointer; }
.node-inline-img img.img-selected { box-shadow: 0 0 0 2px #4a9eff; }
.node-image-resize {
  position: absolute; bottom: 0; right: 0; width: 18px; height: 18px;
  cursor: se-resize; z-index: 2; display: flex;
  align-items: flex-end; justify-content: flex-end; padding: 3px;
  pointer-events: auto;
}
.node-image-resize::after {
  content: ''; display: block; width: 8px; height: 8px;
  border-right: 2px solid rgba(0,0,0,0.28); border-bottom: 2px solid rgba(0,0,0,0.28);
}

.node.img-only .node-content { --node-content-pad: 0px; padding: 0; }

.node-title-bar {
  display: none; flex-shrink: 0;
  padding: 4px 10px;
  background: #2d2d2d; color: #fff;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 35px; font-weight: 700;
  line-height: 1.15;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  white-space: normal; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; user-select: none;
}
.node-title-bar.empty { color: rgba(255,255,255,0.55); font-style: italic; font-weight: 600; }
.node-title-bar .nt-img-icon { vertical-align: -0.12em; }
#world.show-titles .node-title-bar { display: -webkit-box; }
#world.show-titles .node-title-bar ~ .node-content { padding-top: 2px; }
