#markdown-content {
  line-height: 1.5;
}

/* Footnote markers must not increase the height of individual text lines. */
#markdown-content sup {
  line-height: 0;
}

#markdown-content section:has(> eqn) {
  margin-bottom: 0;
}

.content .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
}

.note-quote {
  margin: 1.5em 0 1.5em 1.5em;
  padding: 12px 18px;
  border: 1px solid #ccc;
  border-left: 4px solid #448dd7;
  box-shadow: 3px 3px 0 rgba(0,0,0,1);
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media screen and (max-width: 800px) {
  .note-quote {
    margin-left: 0.75em;
    padding: 10px 14px;
  }
}


/* Generated post content. No client-side citation or math renderer is needed. */
.note-date {
  margin-top: 1em;
  font-size: 1em;
  color: #555;
}

.note-post > hr {
  border: none;
  border-top: 1px solid #555;
  margin-top: 30px;
}

.note-quote blockquote,
.note-quote p {
  margin: 0;
}

.references,
.footnotes {
  font-size: 0.9em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.csl-entry {
  display: flex;
  gap: 0.6em;
  margin-bottom: 0.6em;
}

.csl-left-margin {
  flex: 0 0 3em;
  white-space: nowrap;
}

.csl-right-inline {
  min-width: 0;
}

[id$="-bibliography"] {
  font-size: 1.1em;
  margin-top: 1.5em;
}

math[display="block"] {
  display: block;
  overflow-x: auto;
  margin: 1em 0;
}

.footnote-ref,
.citation a,
.footnote-back {
  scroll-margin-top: 1em;
}

.csl-entry:target,
.footnotes li:target {
  background: #fff4cc;
}
