/* Typography for the /guides/ articles (issue #1089).
 *
 * The articles are Markdown rendered by tools/build_guides.py, so their
 * elements arrive bare -- <h2>, <p>, <ul>, <table> -- and styles/tailwind.css
 * is a prebuilt file whose content globs do not reach them. As with
 * legal.css, plain elements are styled under one class, so a writer writes
 * Markdown and nothing else. Logical properties throughout, for dir="rtl".
 */
.guide-prose { font-size: 1rem; line-height: 1.75; color: hsl(var(--fg)); }
.guide-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.guide-prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.guide-prose h4 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 0.4rem; }
.guide-prose p { margin: 0.9rem 0; }
.guide-prose ul, .guide-prose ol { margin: 0.9rem 0; padding-inline-start: 1.5rem; }
.guide-prose ul { list-style: disc; }
.guide-prose ol { list-style: decimal; }
.guide-prose li { margin: 0.35rem 0; }
.guide-prose a { color: hsl(var(--brand-400)); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.guide-prose a:hover { color: hsl(var(--brand-500)); }
.guide-prose strong { font-weight: 600; }
.guide-prose blockquote { margin: 1.25rem 0; padding-inline-start: 1rem; border-inline-start: 3px solid hsl(var(--brand-400)); color: hsl(var(--fgm)); }
.guide-prose code { font-size: 0.875em; padding: 0.05rem 0.3rem; border-radius: 0.25rem; background: hsl(var(--fg) / 0.06); overflow-wrap: anywhere; }
.guide-prose pre { margin: 1.25rem 0; padding: 1rem; border-radius: 0.75rem; background: hsl(var(--fg) / 0.06); overflow-x: auto; }
.guide-prose pre code { padding: 0; background: none; }
.guide-prose img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.guide-prose table { width: 100%; margin: 1.25rem 0; border-collapse: collapse; font-size: 0.9rem; }
.guide-prose th, .guide-prose td { padding: 0.5rem 0.75rem; border-bottom: 1px solid hsl(var(--fg) / 0.1); text-align: start; }
.guide-prose hr { margin: 2rem 0; border: 0; border-top: 1px solid hsl(var(--fg) / 0.1); }

/* The product block: once after the introduction, once at the end. */
.guide-cta { padding: 2rem; border-radius: 1.5rem; border: 1px solid hsl(var(--fg) / 0.05); background: hsl(var(--surface2) / 0.4); text-align: center; }
.guide-cta-inline { margin: 2rem 0; padding: 1.25rem 1.5rem; border-radius: 1rem; text-align: start; border-inline-start: 3px solid hsl(var(--brand-400)); }
.guide-cta-inline p { margin: 0.35rem 0; }
.guide-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.75rem !important; }
.guide-cta-actions a:first-child { color: #fff; text-decoration: none; }

/* Figures: a screenshot or a drawn diagram with its caption. Drawn diagrams
   are inline SVG in currentColor and the brand tokens, so they follow the
   theme. */
.guide-prose figure { margin: 1.75rem 0; }
.guide-prose figure img, .guide-prose figure svg { display: block; max-width: 100%; height: auto; margin: 0 auto;
  border-radius: 0.75rem; border: 1px solid hsl(var(--fg) / 0.08); }
.guide-prose figure svg { background: hsl(var(--surface2) / 0.35); }
.guide-prose figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: hsl(var(--fgm)); text-align: center; }
.guide-prose .svg-label { fill: currentColor; font-size: 13px; }
.guide-prose .svg-muted { fill: hsl(var(--fgm)); font-size: 11px; }
.guide-prose .svg-box { fill: hsl(var(--brand-500) / 0.10); stroke: hsl(var(--brand-500) / 0.55); }
.guide-prose .svg-box2 { fill: hsl(var(--brand-400) / 0.18); stroke: hsl(var(--brand-400) / 0.6); }
.guide-prose .svg-line { stroke: hsl(var(--fgm)); fill: none; }
/* On a phone a drawn diagram keeps a readable size and scrolls sideways
   inside its figure, rather than shrinking its labels to a few pixels. The
   page itself never scrolls sideways. */
.guide-prose figure:has(> svg) { overflow-x: auto; }
.guide-prose figure > svg { min-width: 560px; }

/* An app page whose hero is a real command rather than a screenshot
 * (tools/build_app_pages.py, "hero_code"). Dark in both themes, as a terminal
 * is; the command scrolls inside the panel so a phone never scrolls the page. */
.app-terminal { background: #0b0818; color: #e9e6f5; }
.app-terminal figcaption { padding: 0.75rem 1.25rem; font-size: 0.75rem; line-height: 1.5; color: #a7a1bf; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.app-terminal pre { margin: 0; padding: 1.25rem; font-size: 0.8125rem; line-height: 1.7; overflow-x: auto; text-align: left; }
.app-terminal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
