@layer uniform.components {
.u-prose {
  font-size: var(--u-font-size-prose);
  line-height: var(--u-line-height-prose);
}

.u-prose > :where(p, ul, ol, h2, h3, blockquote) { max-width: var(--u-max-width-prose); }

.u-prose > :where(p, ul, ol) { margin: 0 0 var(--u-space-4); }

.u-prose > :where(p, blockquote),
.u-prose > :where(ul, ol) > li { text-wrap: pretty; }

.u-prose > :where(ul, ol) { padding-inline-start: var(--u-space-6); }

.u-prose > :where(ul, ol) > li { margin-bottom: var(--u-space-1); }

.u-prose > :where(blockquote) {
  margin: 0 0 var(--u-space-4);
  padding-inline-start: var(--u-space-4);
  border-inline-start: 2px solid var(--u-color-text-default);
}

.u-prose > :where(blockquote) > :where(p) { margin: 0; }

.u-prose > :where(h2) {
  margin: var(--u-space-12) 0 var(--u-space-4);
  font-size: var(--u-font-size-20);
  font-weight: 500;
  line-height: var(--u-line-height-20);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.u-prose > :where(h3) {
  margin: var(--u-space-6) 0 var(--u-space-2);
  font-size: var(--u-font-size-prose);
  font-weight: 500;
  text-wrap: balance;
}

.u-prose > :where(div, figure, table, section, nav, header, form, fieldset) { margin-block: var(--u-space-6); }

.u-prose > :where(dl) {
  container: u-prose-dl / inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  margin: var(--u-space-6) 0;
  border-bottom: 1px solid var(--u-color-divider);
}

.u-prose > :where(dl) > :where(dt, dd) {
  margin: 0;
  padding-block: var(--u-space-4);
  border-top: 1px solid var(--u-color-divider);
}

.u-prose > :where(dl) > :where(dt) {
  grid-column: 1;
  padding-inline-end: var(--u-grid-gutter);
  font-weight: 500;
}

.u-prose > :where(dl) > :where(dd) { grid-column: 2; }

.u-prose > :where(dl) > :where(dd) > :where(:first-child) { margin-top: 0; }

.u-prose > :where(dl) > :where(dd) > :where(:last-child) { margin-bottom: 0; }

.u-prose > :where(dl) > :where(dt:first-child, dt:first-child + dd) { border-top-color: var(--u-color-text-default); }

.u-prose > :where(dl) > :where(dd + dd) {
  margin-top: calc(-1 * var(--u-space-2));
  padding-top: 0;
  border-top: 0;
  font-size: var(--u-font-size-prose);
  color: var(--u-color-text-muted);
}

@container u-prose-dl (max-width: 29.9375rem) {
  .u-prose > :where(dl) > :where(dt) {
    grid-column: 1 / -1;
    padding-inline-end: 0;
    padding-bottom: var(--u-space-1);
  }

  .u-prose > :where(dl) > :where(dd) {
    grid-column: 1 / -1;
    padding-top: 0;
    border-top: 0;
  }

  .u-prose > :where(dl) > :where(dd + dd) { margin-top: calc(-1 * var(--u-space-2)); }
}

.u-prose > :where(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--u-font-size-small);
}

.u-prose > :where(table) :where(th, td) {
  padding-block: var(--u-space-2);
  padding-inline: 0 var(--u-space-4);
  border-bottom: 1px solid var(--u-color-divider);
  text-align: start;
  vertical-align: top;
}

.u-prose > :where(table) :where(th) {
  font-weight: 500;
  border-bottom-color: var(--u-color-text-default);
}

.u-prose > :where(:first-child) { margin-top: 0; }

.u-prose > :where(p, ul, ol, blockquote, dl) :where(code) {
  font-family: var(--u-font-mono);
  font-size: var(--u-font-size-small);
  overflow-wrap: anywhere;
}

.u-prose > :where(p, ul, ol, blockquote, dl) :where(strong) { font-weight: 500; }

.u-prose :where(pre) {
  padding: var(--u-space-4);
  overflow-x: auto;
  border: 1px solid var(--u-color-divider);
  background: var(--u-color-bg-surface);
  color: var(--u-color-text-default);
  font-family: var(--u-font-mono);
  font-size: var(--u-font-size-small);
  line-height: var(--u-line-height-small);
}
}
