.kb-content {
  color: rgb(var(--text-primary));
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.kb-article-page {
  min-height: 100%;
  background: rgb(var(--surface-subtle));
  padding: 32px;
}

.kb-article-sheet {
  min-height: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid rgb(var(--border-subtle));
  border-radius: var(--radius);
  background: rgb(var(--surface-base));
  padding-block: 64px 80px;
  box-shadow: var(--shadow-popover);
}

.kb-article-column {
  width: calc(100% - 96px);
  margin-right: auto;
  margin-left: auto;
}

.kb-article-column--standard {
  max-width: 740px;
}

.kb-article-column--wide {
  max-width: 1100px;
}

.kb-article-title {
  margin: 0 0 32px;
  color: rgb(var(--text-primary));
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.kb-content > *,
.kb-content-body > * {
  margin-block: 0;
}

.kb-content > * + *,
.kb-content-body > * + * {
  margin-top: 1em;
}

.kb-content p {
  max-width: 68ch;
  margin-block: 0;
}

.kb-content h1,
.kb-content h2,
.kb-content h3,
.kb-content h4 {
  color: rgb(var(--text-primary));
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.kb-content h1 {
  margin: 0 0 1em;
  font-size: 2rem;
}

.kb-content h2 {
  margin-top: 1.9em;
  font-size: 1.55rem;
}

.kb-content h3 {
  margin-top: 1.75em;
  font-size: 1.25rem;
}

.kb-content h4 {
  margin-top: 1.6em;
  font-size: 1.08rem;
}

.kb-content ul,
.kb-content ol {
  margin-block: 0;
  padding-left: 1.55em;
}

.kb-content ul {
  list-style: disc;
}

.kb-content ol {
  list-style: decimal;
}

.kb-content li + li {
  margin-top: 0.35em;
}

.kb-content ol > li::marker {
  color: rgb(var(--accent));
  font-weight: 700;
}

.kb-content ul[data-type="taskList"] {
  padding-left: 0;
  list-style: none;
}

.kb-content ul[data-type="taskList"] li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.kb-content ul[data-type="taskList"] label {
  padding-top: 0.15em;
}

.kb-content blockquote {
  border-left: 3px solid rgb(var(--border-strong));
  margin-inline: 0;
  padding: 0.2em 0 0.2em 1em;
  color: rgb(var(--text-secondary));
}

.kb-content a {
  color: rgb(var(--accent));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kb-content a:hover {
  color: rgb(var(--accent-hover));
}

.kb-content pre {
  overflow-x: auto;
  border: 1px solid rgb(var(--border-strong));
  border-radius: var(--radius);
  background: rgb(var(--kb-code-bg));
  padding: 16px;
  color: rgb(var(--kb-code-text));
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
}

.kb-content code:not(pre code) {
  border-radius: 3px;
  background: rgb(var(--surface-subtle));
  padding: 1px 4px;
  font-size: 0.9em;
}

.kb-content .tableWrapper {
  overflow-x: auto;
}

.kb-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.94em;
}

.kb-content th,
.kb-content td {
  min-width: 96px;
  border: 1px solid rgb(var(--border-strong));
  padding: 9px 10px;
  vertical-align: top;
}

.kb-content th {
  background: rgb(var(--surface-subtle));
  font-weight: 650;
  text-align: left;
}

.kb-content .selectedCell {
  background: rgb(var(--accent-soft));
}

.kb-content .kb-callout {
  position: relative;
  border-left: 4px solid rgb(var(--kb-info-border));
  border-radius: var(--radius);
  background: rgb(var(--kb-info-bg));
  padding: 14px 16px 14px 46px;
}

.kb-content .kb-callout::before {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--kb-info-border));
  color: rgb(var(--accent-foreground));
  content: "i";
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.kb-content .kb-callout > * {
  margin-block: 0;
}

.kb-content .kb-callout > * + * {
  margin-top: 0.7em;
}

.kb-content .kb-callout--tip {
  border-color: rgb(var(--kb-tip-border));
  background: rgb(var(--kb-tip-bg));
}

.kb-content .kb-callout--tip::before {
  background: rgb(var(--kb-tip-border));
  content: "✓";
}

.kb-content .kb-callout--important {
  border-color: rgb(var(--kb-important-border));
  background: rgb(var(--kb-important-bg));
}

.kb-content .kb-callout--important::before {
  background: rgb(var(--kb-important-border));
  content: "★";
}

.kb-content .kb-callout--warning {
  border-color: rgb(var(--kb-warning-border));
  background: rgb(var(--kb-warning-bg));
}

.kb-content .kb-callout--warning::before {
  background: rgb(var(--kb-warning-border));
  content: "!";
}

.kb-content figure[data-kb-image] {
  margin: 1.5em 0;
}

.kb-content figure[data-kb-image] img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid rgb(var(--border-strong));
  border-radius: var(--radius);
}

.kb-content figure[data-kb-image] > a {
  display: block;
  border-radius: var(--radius);
}

.kb-content figure[data-kb-image] > a:focus-visible {
  outline: 3px solid rgb(var(--focus-ring) / 0.45);
  outline-offset: 3px;
}

.kb-content figure[data-uploading] {
  opacity: 1;
}

.kb-content [data-kb-image-unavailable],
.kb-content figure[data-uploading]::before {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgb(var(--border-strong));
  border-radius: var(--radius);
  background: rgb(var(--surface-subtle));
  color: rgb(var(--text-secondary));
  content: "Image unavailable";
  font-size: 14px;
  font-weight: 650;
}

.kb-content figure[data-uploading]:has([data-kb-image-unavailable])::before {
  display: none;
}

.kb-content figure[data-uploading] > img,
.kb-content figure[data-uploading] > a {
  display: none;
}

.kb-content figcaption {
  margin-top: 7px;
  color: rgb(var(--text-secondary));
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.kb-content .kb-embed {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid rgb(var(--border-strong));
  border-radius: var(--radius);
  background: rgb(var(--surface-subtle));
}

.kb-content .kb-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.kb-content [data-invalid-embed] {
  border: 1px dashed rgb(var(--border-strong));
  border-radius: var(--radius);
  background: rgb(var(--surface-subtle));
  padding: 18px;
  color: rgb(var(--text-secondary));
  text-align: center;
}

.kb-content.ProseMirror .kb-embed iframe {
  cursor: auto;
  pointer-events: auto;
}

.kb-content.ProseMirror .kb-embed,
.kb-content.ProseMirror [data-invalid-embed] {
  cursor: pointer;
}

.kb-content.ProseMirror .kb-embed.ProseMirror-selectednode,
.kb-content.ProseMirror [data-invalid-embed].ProseMirror-selectednode {
  border-color: rgb(var(--accent));
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--accent) / var(--field-focus-ring-opacity));
}

.kb-content hr {
  border: 0;
  border-top: 1px solid rgb(var(--border-strong));
  margin-block: 2em;
}

@media (max-width: 640px) {
  .kb-article-page {
    padding: 0;
  }

  .kb-article-sheet {
    border: 0;
    border-radius: 0;
    padding-block: 40px 56px;
    box-shadow: none;
  }

  .kb-article-column {
    width: calc(100% - 40px);
  }
}
