/* 
  Dixa Knowledge
  Version 1.3.0
*/

.article {
  /* Globals */
  --theme--text-color: #47405d;
  --theme--title-color: #191034;
  --theme--bg-standard: #f6f5f7;

  /* Specific overrides */
  --callout-color: var(--theme--text-color, #47405d);
  --callout-bg: var(--theme--bg-standard, #f6f5f7);
  --callout-bg-success: #e2efe0;
  --callout-bg-error: #fae2e4;
  --callout-bg-info: #dbebfb;
  --callout-bg-warning: #fbedd4;
  --code-block-bg: var(--theme--bg-standard, #f6f5f7);
  --code-block-color: var(--theme--text-color, #47405d);
  --divider-color: #dad9df;
  --heading-lg-color: var(--theme--title-color, #191034);
  --heading-md-color: var(--theme--title-color, #191034);
  --heading-sm-color: var(--theme--title-color, #191034);
  --image-caption-color: var(--theme--text-color, #47405d);
  --link-external-color: #184cd0;
  --ordered-list-color: var(--theme--text-color, #47405d);
  --quote-border-color: var(--theme--text-color, #47405d);
  --quote-color: var(--theme--text-color, #47405d);
  --text-color: var(--theme--text-color, #47405d);
  --title-color: var(--theme--title-color, #191034);
  --unordered-list-color: var(--theme--text-color, #47405d);
  --table-border-color: #dad9df;
  --table-header-bg: #f5f7fa;
  --code-inline-color: var(--theme--bg-standard, #f6f5f7);
  --code-inline-bg-color: var(--theme--text-color, #47405d);
}

.article {
  margin-inline-start: auto;
  margin-inline-end: auto;
  max-inline-size: 40rem;
  padding-bottom: 1.5rem;
}

.article .callout {
  background-color: var(--callout-bg);
  border-radius: 0.25rem;
  color: var(--callout-color);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-block-start: 1.5rem;
  padding: 1.25rem 1.5rem;
}
.article .callout.success {
  background-color: var(--callout-bg-success);
}
.article .callout.error {
  background-color: var(--callout-bg-error);
}
.article .callout.info {
  background-color: var(--callout-bg-info);
}
.article .callout.warning {
  background-color: var(--callout-bg-warning);
}

.article code {
  color: var(--code-inline-color);
  background-color: var(--code-inline-bg-color);
  padding: 0.1875rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'SF Mono', monospace;
  font-size: 0.875rem;
}

.article .code-block {
  background-color: var(--code-block-bg);
  color: var(--code-block-color);
  border-radius: 0.25rem;
  font-family: 'SF Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-block-start: 1.5rem;
  margin-block-end: 0;
  overflow: auto;
  padding: 1.25rem 1.5rem;
}

.article .code-block code {
  font-family: inherit;
  color: var(--code-block-color);
  background-color: var(--code-block-bg);
  padding: 0;
  border-radius: 0;
}

.article hr {
  align-items: center;
  border: none;
  block-size: 1rem;
  display: flex;
  margin-block-start: 1.5rem;
  margin-block-end: 0;
}
.article hr::before {
  border-block-start: thin solid var(--divider-color);
  content: '';
  display: block;
  inline-size: 100%;
}

.article .html-block {
  position: relative;
  width: 100%;
  min-height: 1.5rem;
}

.article h2 {
  color: var(--heading-lg-color);
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 2.5rem;
  margin-block-start: 3rem;
  margin-block-end: 0;
}

.article h3 {
  color: var(--heading-md-color);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 2rem;
  margin-block-start: 3rem;
  margin-block-end: 0;
}

.article h4 {
  color: var(--heading-sm-color);
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5rem;
  margin-block-start: 3rem;
  margin-block-end: 0;
}

.article .image-inline {
  display: inline-block;
  margin: 0 0.25rem;
  max-inline-size: 100%;
  block-size: auto;
  vertical-align: text-bottom;
  object-fit: cover;
  line-height: 0;
  cursor: pointer;
}

.article .image-figure,
.article .video-figure {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0 0 0;
}

.article .image-preview {
  display: block;
  block-size: auto;
  max-inline-size: 100%;
  object-fit: cover;
  cursor: pointer;
}
.article .video-caption,
.article .image-caption {
  color: var(--image-caption-color);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-block-start: 1rem;
}

.article .video-embed {
  min-width: 92px;
  max-width: 100%;
  position: relative;
}

.article .video-embed-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.article .video-embed-youtube {
  padding-bottom: 56.2061%;
}
.article .video-embed-vimeo {
  padding-bottom: 75%;
}
.article .video-embed-loom {
  padding-bottom: 56.5%;
}

.article .embed {
  margin-block-start: 1rem;
  width: 100%;
  position: relative;
}

.article .embed-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.article .image-stretch {
  width: 100% !important;
}
.article .image-align-end,
.article .image-align-center {
  margin-inline-start: auto;
}
.article .image-align-start,
.article .image-align-center {
  margin-inline-end: auto;
}

.article a {
  color: var(--link-external-color);
  text-decoration: underline;
  cursor: pointer;
}
.article a:hover {
  text-decoration-thickness: 0.125rem;
}
.article a:has(figure) {
  text-decoration: none;
}

.article ol {
  color: var(--ordered-list-color);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-block-start: 1.5rem;
  margin-block-end: 0;
  padding-inline-start: 2rem;
}
.article ol ol {
  margin-block-start: 0;
}
.article ol li {
  margin-block-start: 0.5rem;
}

.article blockquote {
  border-inline-start: 0.125rem solid var(--quote-border-color);
  color: var(--quote-color);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: 1.5rem 0 0 0;
  padding-inline-start: 0.875rem;
}

.article p {
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-block-start: 1.5rem;
  margin-block-end: 0;
}

.article .title {
  color: var(--title-color);
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 3.25rem;
  margin-block-start: 0;
  margin-block-end: 0;
}

.article ul {
  color: var(--unordered-list-color);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-block-start: 1.5rem;
  margin-block-end: 0;
  padding-inline-start: 2rem;
}
.article ul ul {
  margin-block-start: 0;
}
.article ul li {
  margin-block-start: 0.5rem;
}

.article table {
  min-width: 100%;
  margin-block-start: 1.5rem;
  border: 1px solid var(--table-border-color);
  border-radius: 0.25rem;
  border-spacing: 0px;
  border-collapse: separate;
  overflow: hidden;
}

.article th,
.article td {
  border-color: var(--table-border-color);
  border-style: solid;
  border-right-width: 1px;
  border-top-width: 1px;
  border-bottom-width: 0px;
  border-left-width: 0px;
}

.article tr:first-child td,
.article tr:first-child th {
  border-top: 0px;
}

.article tbody tr td:last-child,
.article tbody tr th:last-child {
  border-right: 0px;
}

.article th {
  background: var(--table-header-bg);
}

.article th p {
  font-weight: bold;
}

.article th,
.article td {
  font-weight: normal;
  text-align: start;
  position: relative;
  padding: 0.5rem 0.75rem;
}

.article td p,
.article th p {
  margin-block-start: 0;
}

.article-body {
  container-type: inline-size;
  overflow-y: auto;
}
