/* Documentation pages — palette matched to index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont,
               'Helvetica Neue', Arial, sans-serif;
  background: #ffffff; color: #334155; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: 1160px; margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.nav__logo {
  font-weight: 700; font-size: 1.0625rem; color: #f8fafc;
  text-decoration: none; letter-spacing: -0.01em;
}
.nav__link {
  color: #94a3b8; text-decoration: none; font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #f8fafc; }
.nav__link[aria-current="page"] { font-weight: 600; }
.nav__spacer { margin-left: auto; }
.btn--ghost {
  color: #e2e8f0; text-decoration: none; font-size: 0.875rem;
  padding: 0.4rem 0.85rem; border: 1px solid rgba(203,213,225,0.22);
  border-radius: 7px; transition: background 0.15s ease;
}
.btn--ghost:hover { background: rgba(255,255,255,0.07); color: #f8fafc; }

.wrap { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.crumb { font-size: 0.875rem; color: #64748b; margin-bottom: 1.5rem; }
.crumb a { color: #8B1A2B; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.wrap h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 700; color: #0f172a;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.25rem;
}
.wrap h2 {
  font-size: 1.5rem; font-weight: 700; color: #0f172a;
  margin: 2.75rem 0 0.85rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid #e2e8f0;
}
.wrap h3 { font-size: 1.15rem; font-weight: 650; color: #0f172a; margin: 2rem 0 0.6rem; }
.wrap h4 { font-size: 1rem; font-weight: 650; color: #475569; margin: 1.5rem 0 0.5rem; }
.wrap p, .wrap li { font-size: 1rem; }
.wrap p { margin: 0.85rem 0; }
.wrap ul, .wrap ol { margin: 0.85rem 0 0.85rem 1.5rem; }
.wrap li { margin: 0.35rem 0; }
.wrap a { color: #8B1A2B; text-decoration: none; }
.wrap a:hover { text-decoration: underline; }
.wrap strong { color: #0f172a; font-weight: 650; }
.wrap hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2.5rem 0; }
.wrap blockquote {
  border-left: 3px solid #D94054; padding: 0.15rem 0 0.15rem 1.1rem;
  margin: 1.25rem 0; color: #475569;
}

.wrap code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em; background: #f1f5f9; color: #8B1A2B;
  padding: 0.15em 0.4em; border-radius: 4px;
}
.wrap pre {
  background: #0f172a; border-radius: 10px; padding: 1.15rem 1.35rem;
  overflow-x: auto; margin: 1.25rem 0;
}
.wrap pre code {
  background: none; color: #e2e8f0; padding: 0; font-size: 0.875rem; line-height: 1.65;
}

/* Wide tables scroll inside their own container so the page never does. */
.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
.wrap table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.wrap th, .wrap td {
  text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.wrap th { color: #0f172a; font-weight: 650; background: #f8fafc; white-space: nowrap; }

.footer { border-top: 1px solid #e2e8f0; background: #f8fafc; }
.footer__inner {
  max-width: 1160px; margin: 0 auto; padding: 2rem 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.875rem; color: #64748b;
}
.footer a { color: #475569; text-decoration: none; }
.footer a:hover { color: #0f172a; }

@media (max-width: 640px) {
  .wrap { padding: 2rem 1.15rem 3.5rem; }
  .nav__inner { gap: 0.85rem; }
}
