/* Text written in the dashboard's page editor (IPageHtml, js/rich-editor.js): on the store's pages and inside the
   editor itself, so staff see what customers will. The HTML comes from the editor, so these rules style tags and the
   editor's few classes, not markup of our own. */
.prose { max-width: 760px; font-size: 17px; line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }
.prose > * { margin-block: 0 var(--s-4); }
.prose > :last-child { margin-block-end: 0; }
.prose h2 { margin-block: var(--s-8) var(--s-3); font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: var(--heading-track); }
.prose h3 { margin-block: var(--s-6) var(--s-2); font-size: 20px; font-weight: 500; line-height: 1.35; }
.prose h4 { margin-block: var(--s-5) var(--s-2); font-size: 17px; font-weight: 500; }
.prose > :is(h2, h3, h4):first-child { margin-block-start: 0; }
.prose :is(strong, b) { font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-block-start: var(--s-1); }
.prose blockquote { margin-inline: 0; padding-inline-start: var(--s-4); border-inline-start: 3px solid var(--line-strong); color: var(--ink-2); font-size: 19px; }
.prose hr { border: 0; border-block-start: 1px solid var(--line); margin-block: var(--s-8); }
.prose code { padding: 1px 4px; border-radius: var(--r-tag); background: var(--raised); font-size: 0.9em; }
.prose .align-center { text-align: center; }
.prose .align-end { text-align: end; }
:lang(ar) .prose h2, .prose:lang(ar) h2 { letter-spacing: 0; }

/* A highlighted note. */
.prose .callout { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); }
.prose .callout > * { margin-block: 0 var(--s-2); }
.prose .callout > :last-child { margin-block-end: 0; }

/* A link drawn as the main button. */
.prose a.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--s-6);
  border-radius: var(--r-control);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.prose a.button-link:hover { background: color-mix(in srgb, var(--accent), #000 12%); }

/* Photos: normal is the text's width; small and medium are narrower, centred unless set to the start or the end; wide
   reaches past the text's end on large screens (the text sits at the start of the page, so the room is on the end
   side). */
.prose figure { margin-inline: 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--r-card); background: var(--raised); }
.prose figcaption { margin-block-start: var(--s-2); color: var(--ink-3); font-size: 14px; text-align: center; }
.prose figure.size-small { max-width: min(100%, 360px); margin-inline: auto; }
.prose figure.size-medium { max-width: min(100%, 520px); margin-inline: auto; }
.prose figure:is(.size-small, .size-medium).align-start { margin-inline: 0 auto; }
.prose figure:is(.size-small, .size-medium).align-end { margin-inline: auto 0; }
@media (min-width: 1024px) {
  .prose figure.size-wide { margin-inline-end: -240px; }
}

/* Videos keep 16:9 at any width. */
.prose .embed-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-card); background: var(--raised); }

/* Tables scroll inside their box on phones (IPageHtml.Render wraps them). */
.prose .table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose :is(th, td) { padding: var(--s-2) var(--s-3); border: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--raised); font-weight: 500; }
