/* Ridge: a docs look in the style of opencode.ai/docs, on top of Hatch's docs theme.
   System fonts only: a monospace face for navigation and titles, the theme's sans for reading. */
:root {
  --rg-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --rg-sans: var(--h-font-ui);
  --h-radius-xs: 0;
  --h-radius-sm: 0;
  --h-radius: 0;
  --h-radius-lg: 0;
  --h-radius-xl: 0;
}
:root[data-theme="dark"] { --h-bg: #0b0b0b; --h-bg-subtle: #111111; --h-surface: #161616; --h-border: #232323; --h-border-strong: #3a3a3a; }

/* Header: no bar, the name in mono, the sections as quiet tabs */
.docs-top { background: var(--h-bg); box-shadow: none; border-bottom: 1px solid var(--h-border); }
.docs-top .brand { font: 600 13px/1 var(--rg-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.docs-top .brand::before { content: "R"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; background: var(--h-text); color: var(--h-bg); }
.top-nav a { font: 13px/1 var(--rg-mono); color: var(--h-text-faint); }
.top-nav a[aria-current] { color: var(--h-text); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.search-field { font-family: var(--rg-mono); }

/* Sidebar: mono, a bracket box before each page, filled for the one you're on */
.sidebar, .docs-menu { font-family: var(--rg-mono); }
.sidebar a { font-size: 13px; background: none !important; color: var(--h-text-muted); }
.sidebar li > a::before { content: "[ ]"; margin-right: 10px; color: var(--h-text-faint); white-space: pre; }
.kind-docs .sidebar a[aria-current="page"] { color: var(--h-text); font-weight: 500; }
.sidebar a[aria-current="page"]::before { content: "[-]"; color: var(--h-text); }
.sidebar .nav-label { font: 11px/1 var(--rg-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--h-text-faint); }

/* Page: mono titles, reading text in sans */
.kind-docs .doc-title h1, .kind-docs .prose h2, .kind-docs .prose h3 { font-family: var(--rg-mono); font-weight: 500; letter-spacing: -0.01em; }
.kind-docs .doc-title h1 { font-size: 34px; }
.kind-docs .prose h2 { font-size: 17px; }
.kind-docs .doc-lead { font-size: 16px; color: var(--h-text-muted); }
.kind-docs .prose hr { border-color: var(--h-border); }

/* On this page: mono, a bar beside the current heading */
.kind-docs .toc, .kind-docs .toc p { font-family: var(--rg-mono); }

/* Footer: mono links */
.foot { font-family: var(--rg-mono); font-size: 12px; }
