/* Formatted text: product descriptions and the legal pages. The product builder
   loads this file too, so its preview matches the product page. Colours come from
   the page's own tokens (--ink, --ink-muted, --surface-200, --rule); code blocks use
   the code panel colours, which are the same in both themes. */

.md {
  max-width: 32em;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px; line-height: 28px; font-weight: 400;
  overflow-wrap: break-word;
}
.md > * + * { margin-top: 18px; }
.md > :first-child { margin-top: 0; }
.md p, .md li { text-wrap: pretty; }
.md h2, .md h3, .md h4 { font-family: inherit; color: var(--ink); text-wrap: balance; }
.md h2 { margin-top: 44px; font-size: 26px; line-height: 1.15; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
.md h3 { margin-top: 34px; font-size: 21px; line-height: 1.2; font-weight: 800; font-stretch: 112%; letter-spacing: -0.005em; }
.md h4 { margin-top: 28px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.md h2 + *, .md h3 + *, .md h4 + * { margin-top: 10px; }
.md strong { font-weight: 650; }
.md a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.md a:hover { text-decoration-thickness: 2px; }
.md u { text-underline-offset: 3px; }
.md ul, .md ol { padding-left: 22px; }
.md ul { list-style: disc; }
.md li::marker { color: var(--ink-muted); }
.md li + li, .md li > ul, .md li > ol { margin-top: 6px; }
.md blockquote { padding: 14px 18px; border-radius: 12px; background: var(--surface-200); color: var(--ink-muted); }
.md blockquote > * + * { margin-top: 12px; }
.md code {
  padding: 2px 6px; border-radius: 5px; background: var(--surface-200);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.86em;
}
.md pre {
  padding: 20px 22px; overflow-x: auto; border-radius: 12px;
  background: #0a1422; color: #eef2f7; font-size: 14px; line-height: 23px;
  scrollbar-color: #2a3d5a transparent;
}
.md pre code { padding: 0; border-radius: 0; background: none; font-size: inherit; color: inherit; }
.md hr { margin: 36px 0; border: 0; border-top: 1px solid var(--rule); }
.md img { max-width: 100%; height: auto; border-radius: 12px; }
.md-table { overflow-x: auto; }
.md table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.md th, .md td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.md th { font-weight: 650; color: var(--ink); border-bottom-color: var(--ink); }
.md .al-right { text-align: right; }
.md .al-center { text-align: center; }
/* On phones, code wraps rather than running off the edge. */
@media (max-width: 559px) {
  .md pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
