.lh-preview {
  background: #111019;
  color: #f8f6fc;
  color-scheme: dark;
  font: 16px/1.65 system-ui, sans-serif;
  margin: auto;
  max-width: 800px;
  padding: 24px;
}
.lh-preview a { color: #d5a8ff; }
.lh-preview h1 { line-height: 1.15; }
.lh-preview img, .lh-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.lh-preview figure, .lh-article-body figure { margin: 22px 0; }
.lh-preview figcaption, .lh-article-body figcaption {
  color: var(--muted, #c5bdd1);
  font-size: .9rem;
  margin-top: 7px;
}
.lh-import-toc, .lh-import-faq details {
  background: var(--surface, #201e2b);
  border: 1px solid var(--border, #393546);
  border-radius: 12px;
}
.lh-import-toc { margin: 20px 0 28px; padding: 16px 20px; }
.lh-import-toc strong { display: block; font-size: 1.13em; }
.lh-import-toc ol { margin: 6px 0 0; padding-left: 22px; }
.lh-import-toc li { margin-block: 4px; }
.lh-import-toc a { color: var(--lilac, #d5a8ff); }
.lh-import-faq { display: grid; gap: 8px; margin: 12px 0 24px; }
.lh-import-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 13px 16px;
}
.lh-import-faq summary::-webkit-details-marker { display: none; }
.lh-import-faq summary::after {
  content: "";
  flex: none;
  width: .6em;
  height: .6em;
  border: solid var(--coral, #ff806d);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.lh-import-faq details[open] summary::after { transform: rotate(225deg); }
.lh-import-faq summary:focus-visible { outline: 2px solid var(--lilac, #d5a8ff); outline-offset: 2px; }
.lh-import-faq details > div { padding: 0 16px 12px; }
.lh-import-faq details > div > :last-child { margin-bottom: 0; }

/* Tables in published articles and the import preview. */
:is(.lh-article-body, .lh-preview) table {
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--border, #393546);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface, #201e2b);
  color: var(--text, #f8f6fc);
  font-size: .94rem;
  line-height: 1.45;
}
:is(.lh-article-body, .lh-preview) caption {
  padding: 0 2px 10px;
  color: var(--text, #f8f6fc);
  font-size: 1rem;
  font-weight: 700;
  text-align: start;
}
:is(.lh-article-body, .lh-preview) :is(th, td) {
  padding: 13px 15px;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
:is(.lh-article-body, .lh-preview) th {
  color: var(--lilac, #d5a8ff);
  font-weight: 700;
}
:is(.lh-article-body, .lh-preview) thead th {
  background: #2d263c;
  border-bottom: 1px solid var(--lilac, #d5a8ff);
}
:is(.lh-article-body, .lh-preview) thead tr:first-child th:first-child { border-top-left-radius: 11px; }
:is(.lh-article-body, .lh-preview) thead tr:first-child th:last-child { border-top-right-radius: 11px; }
:is(.lh-article-body, .lh-preview) tbody tr + tr > :is(th, td),
:is(.lh-article-body, .lh-preview) tfoot td { border-top: 1px solid var(--border, #393546); }
:is(.lh-article-body, .lh-preview) tbody tr:nth-child(even) { background: rgba(213, 168, 255, .045); }
:is(.lh-article-body, .lh-preview) tbody :is(th, td) > :last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  :is(.lh-article-body, .lh-preview) table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  :is(.lh-article-body, .lh-preview) caption {
    box-sizing: border-box;
    padding: 10px 12px;
  }
  :is(.lh-article-body, .lh-preview) :is(th, td) {
    min-width: 7.5rem;
    padding: 10px 12px;
  }
}
