/* Styles for the server-rendered content pages (backend/app/content). Plain CSS,
   no build step; colours follow the Tailwind palette the viewer uses. */
:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --code-bg: #f1f5f9;
  --accent: #2563eb;
  --accent-fg: #ffffff;
  color-scheme: light;
}
html.dark {
  --bg: #020617;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e293b;
  --code-bg: #0f172a;
  --accent: #60a5fa;
  --accent-fg: #020617;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.site-header, .site-footer, .content { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
  max-width: none;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); text-decoration: none; }
.button {
  display: inline-block; white-space: nowrap; padding: 8px 14px; border-radius: 6px; background: var(--accent);
  color: var(--accent-fg); font-weight: 600; text-decoration: none; font-size: 15px;
}
.content { padding-top: 24px; padding-bottom: 48px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 12px 0 16px; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
p, li { color: var(--fg); }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; overflow-wrap: anywhere; }
pre { background: var(--code-bg); padding: 12px 14px; border-radius: 6px; overflow-x: auto; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
img { max-width: 100%; height: auto; }
.cta { margin: 2rem 0; }
.faq { border-top: 1px solid var(--border); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 32px; font-size: 14px; color: var(--muted); max-width: none; text-align: center; }
.site-footer p { color: var(--muted); margin: 4px 0; }
@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  .site-header .button { padding: 6px 10px; font-size: 14px; }
}
