/* The site's look over Redoc 3 on /developers/reference (copied to public/developers/ by scripts/build-api-reference.mjs).
   The values are the site's own design tokens (src/styles/tokens.css, which is a copy of the app's), written out because this
   page is not built by Tailwind. Re-copy them when tokens.css changes. Redoc defines its variables with :where(:root), so these
   plain :root rules win; dark is `:root:has(.redoc.dark)` (Redoc's own switch, which follows the site's data-theme through
   /theme-init.js, then the system setting).

   The CSP has no remote font or style, so Inter comes from the site's own copy (inter.woff2, from @fontsource-variable/inter). */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/developers/inter.woff2") format("woff2-variations");
}

:root {
  --k-font: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* tokens.css: the neutral and navy scales (light values) */
  --k-neutral-0: #ffffff;
  --k-neutral-50: oklch(0.982 0.004 245);
  --k-neutral-100: oklch(0.958 0.006 245);
  --k-neutral-200: oklch(0.918 0.008 245);
  --k-neutral-300: oklch(0.86 0.011 245);
  --k-neutral-400: oklch(0.72 0.015 245);
  --k-neutral-500: oklch(0.6 0.018 245);
  --k-neutral-600: oklch(0.5 0.02 245);
  --k-neutral-700: oklch(0.41 0.022 245);
  --k-neutral-800: oklch(0.32 0.024 245);
  --k-neutral-900: oklch(0.245 0.024 245);
  --k-neutral-950: oklch(0.185 0.022 245);
  --k-navy-900: #0f2d44;
  --k-navy-950: oklch(0.21 0.045 244.7);
  --k-teal-300: oklch(0.84 0.065 218.1);
  --k-teal-700: oklch(0.47 0.062 218.1);
  --k-amber-500: #f59e0b;

  /* Semantic roles, light */
  --k-background: var(--k-neutral-50);
  --k-foreground: var(--k-neutral-950);
  --k-card: var(--k-neutral-0);
  --k-muted: var(--k-neutral-100);
  --k-muted-foreground: var(--k-neutral-600);
  --k-border: var(--k-neutral-200);
  --k-primary: var(--k-navy-900);
  --k-primary-foreground: var(--k-neutral-0);
  --k-link: var(--k-teal-700);
  --k-ring: oklch(0.62 0.134 70.1);
}

:root:not([data-theme="light"]):has(.redoc.dark),
:root[data-theme="dark"] {
  --k-background: var(--k-neutral-950);
  --k-foreground: var(--k-neutral-50);
  --k-card: var(--k-neutral-900);
  --k-muted: var(--k-neutral-800);
  --k-muted-foreground: oklch(0.86 0.011 245);
  --k-border: var(--k-neutral-800);
  --k-primary: oklch(0.88 0.045 244.7);
  --k-primary-foreground: var(--k-navy-950);
  --k-link: var(--k-teal-300);
  --k-ring: var(--k-amber-500);
}

/* Redoc's own variables, pointed at the roles above. */
:root {
  --font-family-base: var(--k-font);
  --heading-font-family: var(--k-font);
  --bg-color: var(--k-background);
  --bg-color-raised: var(--k-card);
  --bg-color-tonal: var(--k-muted);
  --text-color-primary: var(--k-foreground);
  --text-color-secondary: var(--k-muted-foreground);
  --text-color-description: var(--k-muted-foreground);
  --border-color-primary: var(--k-border);
  --border-color-secondary: var(--k-border);
  --color-primary-base: var(--k-primary);
  --color-primary-text-on-color: var(--k-primary-foreground);
  --color-primary-text: var(--k-link);
  --color-primary-text-hover: var(--k-link);
  --color-primary-text-active: var(--k-link);
}

html,
body {
  background: var(--k-background);
  color: var(--k-foreground);
}

/* The bar above Redoc: the site's logo and the way back to the Developers pages. */
.kamayu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 1rem;
  background: var(--k-card);
  border-bottom: 1px solid var(--k-border);
  font-family: var(--k-font);
}
.kamayu-bar-logo {
  display: block;
  width: 7.5rem;
  line-height: 0;
}
.kamayu-bar-logo svg {
  display: block;
  width: 100%;
  height: auto;
}
.kamayu-bar-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.kamayu-bar-links a {
  color: var(--k-muted-foreground);
  text-decoration: none;
}
.kamayu-bar-links a:hover {
  color: var(--k-foreground);
}
.kamayu-bar a:focus-visible {
  outline: 2px solid var(--k-ring);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
.kamayu-logo-dark {
  display: none;
}
:root:not([data-theme="light"]):has(.redoc.dark) .kamayu-logo-light,
:root[data-theme="dark"] .kamayu-logo-light {
  display: none;
}
:root:not([data-theme="light"]):has(.redoc.dark) .kamayu-logo-dark,
:root[data-theme="dark"] .kamayu-logo-dark {
  display: block;
}

/* Redoc's "API docs by" badge in the sidebar footer: a link out whose logo loads from Redocly's CDN, which the site's CSP refuses (so it
   would show as a broken badge). Redoc's MIT notice stays in reference.js. */
.redoc a[href="https://redocly.com/redoc/"],
.redoc :has(> a[href="https://redocly.com/redoc/"]) {
  display: none;
}

/* Redoc's search box. Its search never became ready in Safari 26 (it stayed on "Loading...", with and without the site's CSP, 2026-11-25),
   so it is hidden rather than left looking broken. Every operation is in the page, and the browser's own find works. */
.redoc [data-testid="search-trigger"] {
  display: none;
}
