/* The API docs pages (app/views/api_docs/docs.html and gateway_docs.html) theme Scalar entirely
   through these variables, with theme: "none" turning off its built-in palettes, so the docs
   follow the app's fonts and colors without targeting generated class names. */
.dark-mode {
  --scalar-font: InterVariable, ui-sans-serif, system-ui, sans-serif;
  --scalar-font-code: ui-monospace, SFMono-Regular, Menlo, monospace;

  --scalar-background-1: #0f172a; /* slate-900 */
  --scalar-background-2: #1e293b; /* slate-800 */
  --scalar-background-3: #334155; /* slate-700 */
  --scalar-border-color: #334155;

  --scalar-color-1: #f1f5f9; /* slate-100 */
  --scalar-color-2: #cbd5e1; /* slate-300 */
  --scalar-color-3: #94a3b8; /* slate-400 */
  --scalar-color-accent: #ff7700; /* fullstackpayments.com orange */
  --scalar-background-accent: #ff77001f;

  --scalar-sidebar-background-1: #111827;
  --scalar-sidebar-border-color: #1e293b;
  --scalar-sidebar-color-1: #e2e8f0;
  --scalar-sidebar-color-2: #94a3b8;
  --scalar-sidebar-color-active: #ff7700;
  --scalar-sidebar-item-hover-background: #1e293b;
  --scalar-sidebar-item-active-background: #ff77001f;
  --scalar-sidebar-search-background: #1e293b;
  --scalar-sidebar-search-border-color: #334155;
  --scalar-sidebar-search-color: #94a3b8;

  --scalar-radius: 8px;
  --scalar-radius-lg: 12px;
}

/* Our header above Scalar. Scalar offsets its sticky sidebar and content by
   --scalar-custom-header-height, so the two stay in sync. */
:root {
  --scalar-custom-header-height: 56px;
}

.docs-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  box-sizing: border-box;
  height: var(--scalar-custom-header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #111827;
  border-bottom: 1px solid #1e293b;
  font-family: InterVariable, ui-sans-serif, system-ui, sans-serif;
}

.docs-header img {
  display: block;
  height: 28px;
  width: auto;
}

.docs-header-title {
  padding-left: 12px;
  border-left: 1px solid #334155;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.docs-header-nav {
  display: flex;
  gap: 4px;
}

.docs-header-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.docs-header-nav a:hover {
  background: #1e293b;
  color: #ff7700;
}
