/* ---------------------------------
 * Prose
 * Based on @tailwindcss/typography v0.5.16 (MIT, Tailwind Labs) with Tabler tokens.
 * --------------------------------- */

.prose {
    color: var(--prose-body);
}

.prose :where(p) {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose :where([class~='lead']) {
    color: var(--prose-lead);
    font-size: 1.25em;
    line-height: 1.6;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

.prose :where(a) {
    color: var(--prose-links);
    font-weight: 500;
}

.prose :where(strong) {
    color: var(--prose-bold);
    font-weight: 600;
}

.prose :where(a strong) {
    color: inherit;
}

.prose :where(blockquote strong) {
    color: inherit;
}

.prose :where(thead th strong) {
    color: inherit;
}

.prose :where(ol) {
    list-style-type: decimal;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
}

.prose :where(ol[type='A']) {
    list-style-type: upper-alpha;
}

.prose :where(ol[type='a']) {
    list-style-type: lower-alpha;
}

.prose :where(ol[type='A' s]) {
    list-style-type: upper-alpha;
}

.prose :where(ol[type='a' s]) {
    list-style-type: lower-alpha;
}

.prose :where(ol[type='I']) {
    list-style-type: upper-roman;
}

.prose :where(ol[type='i']) {
    list-style-type: lower-roman;
}

.prose :where(ol[type='I' s]) {
    list-style-type: upper-roman;
}

.prose :where(ol[type='i' s]) {
    list-style-type: lower-roman;
}

.prose :where(ol[type='1']) {
    list-style-type: decimal;
}

.prose :where(ul) {
    list-style-type: disc;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
}

.prose :where(ol > li)::marker {
    font-weight: 400;
    color: var(--prose-counters);
}

.prose :where(ul > li)::marker {
    color: var(--prose-bullets);
}

.prose :where(dt) {
    color: var(--prose-headings);
    font-weight: 600;
    margin-top: 1.25em;
}

.prose :where(hr) {
    border-color: var(--prose-hr);
    border-top-width: 1px;
    margin-top: 3em;
    margin-bottom: 3em;
    opacity: 1;
}

.prose :where(blockquote) {
    font-weight: 500;
    font-style: italic;
    color: var(--prose-quotes);
    border-inline-start-width: 0.25rem;
    border-inline-start-color: var(--prose-quote-borders);
    quotes: '\201C' '\201D' '\2018' '\2019';
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-block: 0;
    padding-inline-start: 1em;
    padding-inline-end: 0;
    border-inline-start-style: solid;
}

.prose :where(blockquote p:first-of-type)::before {
    content: open-quote;
}

.prose :where(blockquote p:last-of-type)::after {
    content: close-quote;
}

.prose :where(h1) {
    color: var(--prose-headings);
    font-weight: 800;
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
}

.prose :where(h1 strong) {
    font-weight: 900;
    color: inherit;
}

.prose :where(h2) {
    color: var(--prose-headings);
    font-weight: 700;
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}

.prose :where(h2 strong) {
    font-weight: 800;
    color: inherit;
}

.prose :where(h3) {
    color: var(--prose-headings);
    font-weight: 600;
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}

.prose :where(h3 strong) {
    font-weight: 700;
    color: inherit;
}

.prose :where(h4) {
    color: var(--prose-headings);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.prose :where(h4 strong) {
    font-weight: 700;
    color: inherit;
}

.prose :where(img) {
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 100%;
    height: auto;
}

.prose :where(picture) {
    display: block;
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose :where(video) {
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 100%;
    height: auto;
}

.prose :where(kbd) {
    font-weight: 500;
    font-family: inherit;
    color: var(--prose-kbd);
    box-shadow:
        0 0 0 1px var(--prose-kbd-shadows),
        0 3px 0 var(--prose-kbd-shadows);
    font-size: 0.875em;
    border-radius: 0.3125rem;
    padding-top: 0.1875em;
    padding-inline-end: 0.375em;
    padding-bottom: 0.1875em;
    padding-inline-start: 0.375em;
    background-color: transparent;
}

.prose :where(code) {
    color: var(--prose-code);
    font-weight: 600;
    font-size: 0.875em;
    padding: 0;
    background-color: transparent;
}

.prose :where(code)::before {
    content: '`';
}

.prose :where(code)::after {
    content: '`';
}

.prose :where(a code) {
    color: inherit;
}

.prose :where(h1 code) {
    color: inherit;
}

.prose :where(h2 code) {
    color: inherit;
    font-size: 0.875em;
}

.prose :where(h3 code) {
    color: inherit;
    font-size: 0.9em;
}

.prose :where(h4 code) {
    color: inherit;
}

.prose :where(blockquote code) {
    color: inherit;
}

.prose :where(thead th code) {
    color: inherit;
}

.prose :where(pre) {
    color: var(--prose-pre-code);
    background-color: var(--prose-pre-bg);
    overflow-x: auto;
    font-weight: 400;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.375rem;
    padding-top: 0.8571429em;
    padding-inline-end: 1.1428571em;
    padding-bottom: 0.8571429em;
    padding-inline-start: 1.1428571em;
}

.prose :where(pre code) {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.prose :where(pre code)::before {
    content: none;
}

.prose :where(pre code)::after {
    content: none;
}

.prose :where(table) {
    width: 100%;
    table-layout: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
    line-height: 1.7142857;
}

.prose :where(thead) {
    border-bottom-width: 1px;
    border-bottom-color: var(--prose-th-borders);
}

.prose :where(thead th) {
    color: var(--prose-headings);
    font-weight: 600;
    vertical-align: bottom;
    padding-inline-end: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-inline-start: 0.5714286em;
}

.prose :where(tbody tr) {
    border-bottom-width: 1px;
    border-bottom-color: var(--prose-td-borders);
}

.prose :where(tbody tr:last-child) {
    border-bottom-width: 0;
}

.prose :where(tbody td) {
    vertical-align: baseline;
}

.prose :where(tfoot) {
    border-top-width: 1px;
    border-top-color: var(--prose-th-borders);
}

.prose :where(tfoot td) {
    vertical-align: top;
}

.prose :where(th, td) {
    text-align: start;
}

.prose :where(figure > *) {
    margin-top: 0;
    margin-bottom: 0;
}

.prose :where(figcaption) {
    color: var(--prose-captions);
    font-size: 0.875em;
    line-height: 1.4285714;
    margin-top: 0.8571429em;
}

.prose {
    --prose-body: var(--tblr-body-color);
    --prose-headings: var(--tblr-gray-900);
    --prose-lead: var(--tblr-secondary);
    --prose-links: var(--tblr-primary);
    --prose-bold: var(--prose-headings);
    --prose-counters: var(--tblr-secondary);
    --prose-bullets: var(--tblr-gray-300);
    --prose-hr: var(--tblr-border-color);
    --prose-quotes: var(--prose-headings);
    --prose-quote-borders: var(--tblr-border-color);
    --prose-captions: var(--tblr-secondary);
    --prose-kbd: var(--prose-headings);
    --prose-kbd-shadows: rgba(var(--tblr-emphasis-color-rgb), 0.1);
    --prose-code: var(--prose-headings);
    --prose-pre-code: var(--tblr-gray-200);
    --prose-pre-bg: var(--tblr-dark);
    --prose-th-borders: var(--tblr-gray-300);
    --prose-td-borders: var(--tblr-border-color);

    font-size: 1rem;
    line-height: 1.75;
}

[data-bs-theme='dark'] .prose {
    --prose-headings: var(--tblr-emphasis-color);
    --prose-bullets: var(--tblr-gray-600);
    --prose-pre-bg: var(--tblr-bg-surface-dark);
    --prose-th-borders: var(--tblr-gray-600);
}

.prose :where(picture > img) {
    margin-top: 0;
    margin-bottom: 0;
}

.prose :where(li) {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose :where(ol > li) {
    padding-inline-start: 0.375em;
}

.prose :where(ul > li) {
    padding-inline-start: 0.375em;
}

.prose :where(.prose > ul > li p) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose :where(.prose > ul > li > p:first-child) {
    margin-top: 1.25em;
}

.prose :where(.prose > ul > li > p:last-child) {
    margin-bottom: 1.25em;
}

.prose :where(.prose > ol > li > p:first-child) {
    margin-top: 1.25em;
}

.prose :where(.prose > ol > li > p:last-child) {
    margin-bottom: 1.25em;
}

.prose :where(ul ul, ul ol, ol ul, ol ol) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose :where(dl) {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose :where(dd) {
    margin-top: 0.5em;
    padding-inline-start: 1.625em;
}

.prose :where(hr + *) {
    margin-top: 0;
}

.prose :where(h2 + *) {
    margin-top: 0;
}

.prose :where(h3 + *) {
    margin-top: 0;
}

.prose :where(h4 + *) {
    margin-top: 0;
}

.prose :where(thead th:first-child) {
    padding-inline-start: 0;
}

.prose :where(thead th:last-child) {
    padding-inline-end: 0;
}

.prose :where(tbody td, tfoot td) {
    padding-top: 0.5714286em;
    padding-inline-end: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-inline-start: 0.5714286em;
}

.prose :where(tbody td:first-child, tfoot td:first-child) {
    padding-inline-start: 0;
}

.prose :where(tbody td:last-child, tfoot td:last-child) {
    padding-inline-end: 0;
}

.prose :where(figure) {
    margin-top: 2em;
    margin-bottom: 2em;
}

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

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