/* Shared Markdown article presentation. Site layout and theme live in site.css. */
.nk-obsidian-post {
  font: 15px/1.6 Verdana, Arial, sans-serif;
  color: var(--nk-fg);
  overflow-wrap: anywhere;
}

.nk-obsidian-post p {
  font: 15px/1.6 Verdana, Arial, sans-serif !important;
  color: var(--nk-fg) !important;
  margin: 0 0 1.2em;
}

.nk-obsidian-post p[align='center'] {
  text-align: center;
}

.nk-obsidian-post strong {
  font-weight: 700;
}

/* Native Squarespace heading/link colors otherwise override the article theme. */
.nk-obsidian-post :is(h1, h2, h3, h4, h5, h6, a) {
  color: var(--nk-fg) !important;
  transition: none !important;
}

.nk-obsidian-post :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--nk-font) !important;
}

/* Inline exponents and chemical subscripts should not stretch paragraph lines. */
.nk-obsidian-post sup,
.nk-obsidian-post sub {
  font-size: 75%;
  line-height: 0;
}

.nk-obsidian-post sup {
  vertical-align: super;
}

.nk-obsidian-post sub {
  vertical-align: sub;
}

.nk-obsidian-post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25em auto;
}

/* Opt in only for diagrams with dark ink on a white background, not photos.
   The shared SVG filter uses the same animated foreground as the surrounding
   text. Its transparent background reveals the page's animated background. */
.nk-obsidian-post img.nk-theme-diagram {
  filter: url('#nk-theme-diagram-filter');
}

#nk-diagram-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#nk-diagram-filters .nk-diagram-ink {
  flood-color: var(--nk-fg);
}

.nk-obsidian-post .nk-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.25em 0;
}

.nk-obsidian-post table {
  border-collapse: collapse;
  min-width: 220px;
  width: auto;
  font: inherit;
  color: inherit;
}

.nk-obsidian-post th,
.nk-obsidian-post td {
  border: 1px solid var(--nk-line);
  padding: 6px 12px;
  text-align: left;
  vertical-align: top;
}

.nk-obsidian-post th {
  font-weight: 700;
}
