/**
 * HtmlContent prose shell — replaces Flowbite `format*` utilities.
 * Uses `--su-*` tokens so tenant ThemeRoot theming applies.
 */
.su-html-content {
  min-width: 100%;
  color: var(--su-color-foreground);
  font-size: var(--su-font-size-sm);
  line-height: 1.625;
}

.su-html-content :where(p) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.su-html-content :where(a) {
  color: var(--su-color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.su-html-content :where(strong) {
  font-weight: 600;
  color: var(--su-color-foreground);
}

.su-html-content :where(h1) {
  margin-top: 0;
  margin-bottom: 0.888em;
  font-family: var(--su-font-family-heading);
  font-size: var(--su-font-size-3xl);
  font-weight: 800;
  line-height: 1.111;
  color: var(--su-color-foreground);
}

.su-html-content :where(h2) {
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  font-family: var(--su-font-family-heading);
  font-size: var(--su-font-size-2xl);
  font-weight: 700;
  line-height: 1.333;
  color: var(--su-color-foreground);
}

.su-html-content :where(h3) {
  margin-top: 1.555em;
  margin-bottom: 0.6em;
  font-family: var(--su-font-family-heading);
  font-size: var(--su-font-size-xl);
  font-weight: 600;
  line-height: 1.6;
  color: var(--su-color-foreground);
}

.su-html-content :where(h4) {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-family: var(--su-font-family-heading);
  font-size: var(--su-font-size-lg);
  font-weight: 600;
  line-height: 1.5;
  color: var(--su-color-foreground);
}

.su-html-content :where(blockquote) {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
  border-left: var(--su-space-1) solid var(--su-color-border);
  font-weight: 500;
  font-style: italic;
  color: var(--su-color-foreground);
}

.su-html-content :where(ul) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  list-style-type: disc;
}

.su-html-content :where(ol) {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  list-style-type: decimal;
}

.su-html-content :where(li) {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.su-html-content :where(img),
.su-html-content :where(video) {
  margin-top: 2em;
  margin-bottom: 2em;
  max-width: 100%;
  height: auto;
  border-radius: var(--su-radius-surface);
}

.su-html-content :where(code) {
  font-size: 0.875em;
  font-weight: 600;
  color: var(--su-color-foreground);
}

.su-html-content :where(pre) {
  margin-top: 1.7em;
  margin-bottom: 1.7em;
  padding: 0.85em 1.15em;
  overflow-x: auto;
  border-radius: var(--su-radius-control);
  background-color: var(--su-color-muted);
  color: var(--su-color-foreground);
  font-size: var(--su-font-size-sm);
  line-height: 1.7;
}

.su-html-content :where(pre code) {
  font-weight: 400;
  background: transparent;
}

.su-html-content :where(hr) {
  margin-top: 3em;
  margin-bottom: 3em;
  border: 0;
  border-top: 1px solid var(--su-color-border);
}

.su-html-content :where(table) {
  width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: var(--su-font-size-sm);
  line-height: 1.7;
  border-collapse: collapse;
}

.su-html-content :where(thead th) {
  padding: 0.5em;
  border-bottom: 1px solid var(--su-color-border);
  font-weight: 600;
  text-align: left;
  color: var(--su-color-foreground);
}

.su-html-content :where(tbody td) {
  padding: 0.5em;
  border-bottom: 1px solid var(--su-color-border);
  vertical-align: baseline;
}

@media (min-width: 640px) {
  .su-html-content {
    font-size: var(--su-font-size-base);
  }
}

@media (min-width: 1024px) {
  .su-html-content {
    font-size: var(--su-font-size-lg);
  }
}
