/* Rich content (product description, page content, sales-page description): ONE file, byte-identical in every theme
   (gate row I16), loaded after the theme's own CSS; no later .prose rule may override it (I17). Logical properties,
   RTL + LTR; colours from currentColor so light and dark follow the theme. Merchant inline styles (text-align,
   background-color, margins, and colour in light mode) are never overridden. */
/* the description never widens its column: it may shrink (min-width 0) and long words break; tables and pre scroll
   inside themselves (below). The theme's own reading width (max-width) is kept. No size containment: inside a
   shrink-to-fit parent (flex item, inline-block, table cell, fit-content: e.g. the merchant's own sales-page HTML) that
   would collapse it to 0. */
.prose { min-width: 0; overflow-wrap: anywhere; }
.prose > :first-child { margin-block-start: 0; }
.prose > :last-child { margin-block-end: 0; }
.prose :is(p, ul, ol, blockquote, table, pre, figure) { margin-block: 0 1em; }
.prose :is(h1, h2, h3, h4, h5, h6) { margin-block: 1.4em 0.5em; line-height: 1.3; font-weight: 700; }
.prose h1, .prose h2 { font-size: 1.375em; }
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1.075em; }
.prose h5, .prose h6 { font-size: 1em; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; }
.prose ol { list-style: decimal; padding-inline-start: 1.6em; }
.prose ul ul { list-style: circle; }
.prose ul ul ul { list-style: square; }
.prose li { display: list-item; margin-block: 0.25em; }
/* mixed languages. On LEFT-TO-RIGHT pages (html[dir="ltr"], set by the layout) each block takes its direction from its own
   first letter (a description written as plain text, without paragraphs, too), so an Arabic paragraph keeps its
   punctuation at its own end; it stays on the page's side (match-parent;
   Chrome and Safari need the -webkit- form). On right-to-left pages nothing changes: an Arabic sentence that opens with
   a Latin word (iPhone, LED, MDF…) must stay right-to-left. A block with an explicit dir (set by the editor) resolves its
   own direction on any page and still stays on the page's side; a merchant's inline text-align wins, centred sections
   stay centred. */
html[dir="ltr"] :is(.prose, .prose :is(p, li, h1, h2, h3, h4, h5, h6, th, td, blockquote, figcaption)) { unicode-bidi: plaintext; text-align: match-parent; text-align: -webkit-match-parent; }
.prose [dir] { text-align: match-parent; text-align: -webkit-match-parent; }
/* a list item with its own dir keeps the list's direction, so its bullet stays on the page's side next to the text; its
   letters still resolve their own direction (the editor sets dir from them) */
.prose li[dir] { direction: inherit; unicode-bidi: plaintext; }
/* the editor wraps list items, table cells and quotes in <p>: no paragraph gaps there */
.prose :is(li, th, td, blockquote) > p { margin-block: 0; }
.prose :is(ul, ol) :is(ul, ol) { margin-block: 0.25em 0; }
.prose blockquote { margin-inline: 0; padding-block: 0.25em; padding-inline-start: 1em; border-inline-start: 3px solid rgba(127,127,127,.45); border-inline-start-color: color-mix(in srgb, currentColor 30%, transparent); opacity: .9; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 0.15em; }
.prose mark { background: #ffe066; color: #1a1a1a; padding-inline: 0.15em; border-radius: 0.2em; }
/* images: block, so the editor's inline margin-left/right (auto | 0) place them right, centre or left; the theme sets no
   horizontal margin of its own */
.prose img { display: block; max-width: 100%; height: auto; margin-block: 1em; border-radius: 0.5em; }
.prose hr { border: 0; border-block-start: 1px solid rgba(127,127,127,.35); border-block-start-color: color-mix(in srgb, currentColor 20%, transparent); margin-block: 1.5em; }
.prose :not(pre) > code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 0.3em; background: rgba(127,127,127,.15); background: color-mix(in srgb, currentColor 10%, transparent); }
.prose pre { direction: ltr; text-align: left; overflow-x: auto; max-width: 100%; padding: 0.75em 1em; border-radius: 0.5em; font-size: 0.9em; background: rgba(127,127,127,.12); background: color-mix(in srgb, currentColor 8%, transparent); }
.prose pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* tables: borders and padding; cells keep whole words, and on a narrow screen the table scrolls inside itself, the page
   never does */
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.95em; }
.prose :is(th, td) { overflow-wrap: normal; padding: 0.5em 0.75em; border: 1px solid rgba(127,127,127,.35); border-color: color-mix(in srgb, currentColor 22%, transparent); text-align: start; vertical-align: top; }
.prose th { font-weight: 700; background: rgba(127,127,127,.1); background: color-mix(in srgb, currentColor 7%, transparent); }
/* a merchant highlight (inline background-color) keeps dark text so it stays readable in dark mode too */
.prose [style*="background-color"] { color: #1a1a1a; padding-inline: 0.15em; border-radius: 0.2em; }
/* dark mode: merchant text colours were picked on the light editor (black or navy would vanish on a dark page), so they
   follow the theme's ink; highlights keep their colour with dark text (above). Light mode shows every colour as set. */
[data-mode="dark"] .prose [style*="color"]:not([style*="background-color"]) { color: inherit !important; }
/* bold / italic / links inside a merchant colour or highlight keep that colour (the themes paint .prose strong in their
   own ink, which hid the editor's <span style="color"><strong>) */
.prose [style*="color"] :is(strong, b, em, i, u, s, a) { color: inherit; }
