/* Kenso theme for developer.ken.so (Scalar 1.59, vendored).
   It matches the docs on the same host (Fumadocs UI, neutral theme, DEV-11874): Geist for UI
   and prose, Geist Mono for code, neutral grays, brand purple only for links, the active item,
   focus and the primary button, hairline rings instead of borders.
   Scalar keeps its own rules in CSS layers, so these unlayered rules win on every selector.
   The same file styles the changelog page. */

/* Geist and Geist Mono (SIL OFL 1.1, fonts/OFL-Geist.txt), self-hosted: variable latin
   subsets, so one file per family covers every weight. The URLs are relative to this file,
   so they resolve under /reference/assets/fonts/ on developer.ken.so. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Geist-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/GeistMono-latin.woff2") format("woff2");
}

/* ---------- Tokens shared by light and dark ---------- */
:root {
  --ken-header-h: 52px;
  --scalar-custom-header-height: var(--ken-header-h);

  --scalar-font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --scalar-font-code: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ken-font-display: "Geist", ui-sans-serif, system-ui, sans-serif;

  /* Type scale. Prose at 15px with a 1.6 leading reads better than Scalar's 16px in two columns. */
  --scalar-heading-1: 32px;
  --scalar-heading-2: 24px;
  --scalar-heading-3: 20px;
  --scalar-heading-4: 16px;
  --scalar-heading-5: 15px;
  --scalar-heading-6: 15px;
  --scalar-page-description: 15px;
  --scalar-paragraph: 15px;
  --scalar-small: 13.5px;
  --scalar-mini: 13px;
  --scalar-micro: 12px;
  --scalar-font-size-1: 20px;
  --scalar-font-size-2: 15px;
  --scalar-font-size-3: 13.5px;
  --scalar-font-size-4: 12.5px;
  --scalar-font-size-5: 12px;
  --scalar-font-size-6: 11.5px;
  --scalar-font-size-7: 10.5px;
  --scalar-line-height-1: 30px;
  --scalar-line-height-2: 24px;
  --scalar-line-height-3: 20px;
  --scalar-line-height-4: 18px;
  --scalar-line-height-5: 16px;
  --scalar-regular: 400;
  --scalar-semibold: 500;
  --scalar-bold: 600;
  --scalar-font-normal: 400;
  --scalar-font-medium: 500;
  --scalar-font-bold: 600;

  /* Shape: V4 radii (8 controls, 12 cards) and 1px hairlines. */
  --scalar-border-width: 1px;
  --scalar-radius: 6px;
  --scalar-radius-lg: 8px;
  --scalar-radius-xl: 12px;
  --scalar-sidebar-width: 276px;
  --scalar-content-max-width: 1440px;
  --scalar-sidebar-indent: 16px;
  --scalar-sidebar-padding: 12px;
  --scalar-text-decoration: none;
  --scalar-text-decoration-hover: underline;
}

/* ---------- Light (default) ----------
   Fumadocs neutral: page 96%, raised surfaces (cards, sidebar, code) 94.7%, popovers and
   inputs 98%, hover fill 93.1%. Scalar has two text tiers past the first; both are the
   docs' muted text. */
:root,
html.light-mode,
body.light-mode {
  color-scheme: light;
  --scalar-color-1: hsl(0 0% 3.9%);
  --scalar-color-2: hsl(0 0% 45.1%);
  --scalar-color-3: hsl(0 0% 45.1%);
  --scalar-background-1: hsl(0 0% 96%);
  --scalar-background-2: hsl(0 0% 94.7%);
  --scalar-background-3: hsl(0 0% 93.1%);
  --scalar-border-color: hsla(0 0% 80% / 0.5);

  --scalar-color-accent: #4f00d0;
  --scalar-background-accent: #f1e6ff;
  --scalar-link-color: #4f00d0;
  --scalar-link-color-hover: #3a0099;
  --scalar-link-color-visited: #4f00d0;
  --scalar-button-1: #4f00d0;
  --scalar-button-1-hover: #4300b0;
  --scalar-button-1-color: #ffffff;

  /* HTTP methods: green create, blue read, orange change, red delete. Green, orange, red and
     yellow are a shade darker than on white, to keep 4.5:1 on the gray surfaces. */
  --scalar-color-green: #007a33;
  --scalar-color-blue: #1f5fd1;
  --scalar-color-orange: #b54300;
  --scalar-color-red: #c42828;
  --scalar-color-purple: #6b29d8;
  --scalar-color-yellow: #935a00;
  --scalar-color-danger: #c42828;
  --scalar-color-alert: #935a00;
  --scalar-background-danger: #ffece5;
  --scalar-background-alert: #fff6d6;

  --scalar-sidebar-background-1: hsl(0 0% 94.7%);
  --scalar-sidebar-border-color: hsla(0 0% 80% / 0.5);
  --scalar-sidebar-color-1: hsl(0 0% 3.9%);
  --scalar-sidebar-color-2: hsl(0 0% 45.1%);
  --scalar-sidebar-color-active: #4f00d0;
  --scalar-sidebar-item-hover-background: hsl(0 0% 93.1%);
  --scalar-sidebar-item-hover-color: hsl(0 0% 3.9%);
  --scalar-sidebar-item-active-background: rgba(79, 0, 208, 0.1);
  --scalar-sidebar-search-background: hsl(0 0% 98%);
  --scalar-sidebar-search-border-color: hsla(0 0% 80% / 0.5);
  --scalar-sidebar-search-color: hsl(0 0% 45.1%);
  --scalar-sidebar-indent-border: hsla(0 0% 80% / 0.5);
  --scalar-sidebar-indent-border-hover: #c4c4c4;
  --scalar-sidebar-indent-border-active: #4f00d0;

  --scalar-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --scalar-shadow-2: 0 0 0 1px hsla(0 0% 80% / 0.5), 0 12px 32px rgba(0, 0, 0, 0.12);
  --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);
  --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);
  --scalar-lifted-brightness: 1;
  --scalar-backdrop-brightness: 1;

  --ken-ring: 0 0 0 1px hsla(0 0% 80% / 0.5);
  --ken-ring-card: 0 0 0 1px hsla(0 0% 80% / 0.5), 0 1px 2px rgba(0, 0, 0, 0.03);
  --ken-focus: rgba(79, 0, 208, 0.55);
  --ken-pill-added-bg: #dcfce7;
  --ken-pill-added-ink: #0a5a2a;
  --ken-pill-breaking-bg: #ffe4dc;
  --ken-pill-breaking-ink: #8a2a0c;
  --ken-pill-warn-bg: #fff3c4;
  --ken-pill-warn-ink: #6b4b00;
}

/* ---------- Dark (Fumadocs neutral) ----------
   Page 7.04%, raised 9.8%, popovers and inputs 11.6%, hover fill 12.9%. */
html.dark-mode,
body.dark-mode {
  color-scheme: dark;
  --scalar-color-1: hsl(0 0% 92%);
  --scalar-color-2: hsla(0 0% 70% / 0.8);
  --scalar-color-3: hsla(0 0% 70% / 0.8);
  --scalar-background-1: hsl(0 0% 7.04%);
  --scalar-background-2: hsl(0 0% 9.8%);
  --scalar-background-3: hsl(0 0% 12.9%);
  --scalar-border-color: hsla(0 0% 40% / 0.2);

  --scalar-color-accent: #b9a0ff;
  --scalar-background-accent: #2b2736;
  --scalar-link-color: #b9a0ff;
  --scalar-link-color-hover: #d5c7ff;
  --scalar-link-color-visited: #b9a0ff;
  --scalar-button-1: #b9a0ff;
  --scalar-button-1-hover: #c9b5ff;
  --scalar-button-1-color: hsl(0 0% 9%);

  --scalar-color-green: #4dd88a;
  --scalar-color-blue: #8fb0ff;
  --scalar-color-orange: #ff8a62;
  --scalar-color-red: #f07171;
  --scalar-color-purple: #d4c4f8;
  --scalar-color-yellow: #e8bf55;
  --scalar-color-danger: #f07171;
  --scalar-color-alert: #e8bf55;
  --scalar-background-danger: #2c1812;
  --scalar-background-alert: #2a2412;

  --scalar-sidebar-background-1: hsl(0 0% 9.8%);
  --scalar-sidebar-border-color: hsla(0 0% 40% / 0.2);
  --scalar-sidebar-color-1: hsl(0 0% 92%);
  --scalar-sidebar-color-2: hsla(0 0% 70% / 0.8);
  --scalar-sidebar-color-active: #b9a0ff;
  --scalar-sidebar-item-hover-background: hsl(0 0% 12.9%);
  --scalar-sidebar-item-hover-color: hsl(0 0% 92%);
  --scalar-sidebar-item-active-background: rgba(185, 160, 255, 0.1);
  --scalar-sidebar-search-background: hsl(0 0% 11.6%);
  --scalar-sidebar-search-border-color: hsla(0 0% 40% / 0.2);
  --scalar-sidebar-search-color: hsla(0 0% 70% / 0.8);
  --scalar-sidebar-indent-border: hsla(0 0% 40% / 0.2);
  --scalar-sidebar-indent-border-hover: hsl(0 0% 30%);
  --scalar-sidebar-indent-border-active: #b9a0ff;

  --scalar-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --scalar-shadow-2: 0 0 0 1px hsla(0 0% 40% / 0.2), 0 16px 40px rgba(0, 0, 0, 0.5);
  --scalar-scrollbar-color: rgba(255, 255, 255, 0.16);
  --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.32);
  --scalar-lifted-brightness: 1.3;
  --scalar-backdrop-brightness: 0.5;

  --ken-ring: 0 0 0 1px hsla(0 0% 40% / 0.2);
  --ken-ring-card: 0 0 0 1px hsla(0 0% 40% / 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
  --ken-focus: rgba(185, 160, 255, 0.6);
  --ken-pill-added-bg: #14281c;
  --ken-pill-added-ink: #7fe3a8;
  --ken-pill-breaking-bg: #3a221a;
  --ken-pill-breaking-ink: #ffb49d;
  --ken-pill-warn-bg: #2a2412;
  --ken-pill-warn-ink: #e8bf55;
}

/* ---------- Page chrome ---------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--scalar-background-1);
  color: var(--scalar-color-1);
  font-family: var(--scalar-font);
}

:focus-visible {
  outline: 2px solid var(--ken-focus);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The slim top bar. Scalar reads --scalar-custom-header-height, so its sidebar and
   mobile menu bar start below it instead of under it. */
.ken-header {
  position: sticky;
  top: 0;
  z-index: 40;
  box-sizing: border-box;
  height: var(--ken-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 20px;
  background: var(--scalar-background-1);
  border-bottom: 1px solid var(--scalar-border-color);
  font-family: var(--scalar-font);
  font-size: 13.5px;
  line-height: 1;
  color: var(--scalar-color-1);
}

.ken-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
  color: var(--scalar-color-1);
  text-decoration: none;
  font-family: var(--ken-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  border-radius: 8px;
}

.ken-brand img {
  display: block;
  width: 20px;
  height: 22px;
}

.ken-brand .ken-brand-sub {
  font-family: var(--scalar-font);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--scalar-color-3);
  letter-spacing: 0;
  margin-left: -2px;
}

.ken-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
  min-width: 0;
}

.ken-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--scalar-color-2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.ken-nav a:hover {
  color: var(--scalar-color-1);
}

.ken-nav a[aria-current="page"] {
  color: var(--scalar-color-1);
}

/* The active tab is the V4 underline tab: a 2px brand bar on the bottom edge. */
.ken-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--scalar-color-accent);
}

.ken-nav a:focus-visible {
  outline-offset: -3px;
  border-radius: 8px;
}

.ken-header-spacer {
  flex: 1;
}

/* Primary action: the accent button of the docs header. */
.ken-key {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--scalar-button-1);
  color: var(--scalar-button-1-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

.ken-key:hover {
  background: var(--scalar-button-1-hover);
}

/* The quiet way back to ken.so, after the key button. */
.ken-site {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--scalar-color-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

.ken-site:hover {
  color: var(--scalar-color-1);
}

.ken-short {
  display: none;
}

@media (max-width: 1000px) {
  .ken-header {
    padding: 0 12px 0 14px;
    gap: 4px;
  }
  .ken-brand {
    margin-right: 6px;
    font-size: 17px;
  }
  .ken-brand .ken-brand-sub {
    display: none;
  }
  .ken-nav a {
    padding: 0 7px;
    font-size: 13px;
  }
  .ken-nav a[aria-current="page"]::after {
    left: 7px;
    right: 7px;
  }
  .ken-key {
    height: 28px;
    padding: 0 10px;
    font-size: 12.5px;
  }
}

/* Small tablets: five links with their long labels, the key button and the ken.so link do not fit
   one row under about 640px, so the ken.so link goes first. */
@media (max-width: 720px) {
  .ken-site {
    display: none;
  }
}

/* Phones: the mark alone, short labels, and the key button says what it is in two words. */
@media (max-width: 560px) {
  .ken-brand > span {
    display: none;
  }
  .ken-long {
    display: none;
  }
  .ken-short {
    display: inline;
  }
  /* Five links and the key button have to fit a 360px phone: everything sits tighter, and on a
     narrower screen the links scroll sideways before they run under the button. */
  .ken-header {
    padding: 0 8px 0 10px;
    gap: 2px;
  }
  .ken-brand {
    margin-right: 2px;
  }
  .ken-nav {
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ken-nav::-webkit-scrollbar {
    display: none;
  }
  .ken-nav a {
    padding: 0 4px;
    font-size: 12.5px;
  }
  .ken-nav a[aria-current="page"]::after {
    left: 4px;
    right: 4px;
    bottom: 0;
  }
  .ken-key {
    flex-shrink: 0;
    padding: 0 8px;
  }
}

/* While Scalar boots there is a skeleton; keep the canvas in the right color so the
   page never flashes white in dark mode or dark in light mode. */
#app {
  min-height: calc(100vh - var(--ken-header-h));
  background: var(--scalar-background-1);
}

/* Scalar's sidebar and mobile bar are sticky under the header; put the header above them. */
.scalar-app .t-doc__sidebar,
.scalar-app .t-doc__header {
  z-index: 30;
}

/* Deep links on mobile: two sticky bars (ours and Scalar's menu bar) sit above the content,
   so the anchor needs the full offset, not Scalar's fixed 64px. The hover-only "copy link"
   button after a heading is laid out past the right edge when the title fills the line and
   makes the page 15px wider than the phone, so it goes on narrow screens (no hover there). */
@media (max-width: 1000px) {
  .scalar-app .scroll-mt-16,
  .scalar-app .scroll-mt-24 {
    scroll-margin-top: calc(var(--ken-header-h) + 50px + 16px) !important;
  }
  .scalar-app .operation-title button.scalar-button,
  .scalar-app .section-header button.scalar-button {
    display: none;
  }
}

/* ---------- Sidebar ---------- */
.scalar-app .t-doc__sidebar {
  font-size: 13.5px;
}

/* Document switcher at the top: a quiet label with the chevron. */
.scalar-app .t-doc__sidebar .document-selector {
  padding-top: 14px;
}

.scalar-app .t-doc__sidebar .document-selector button {
  font-size: 13px;
  font-weight: 600;
  color: var(--scalar-sidebar-color-1);
  padding: 4px 6px;
  border-radius: 8px;
}

.scalar-app .t-doc__sidebar .document-selector button:hover {
  background: var(--scalar-sidebar-item-hover-background);
}

/* Search field: a V4 input, 32px, hairline ring, 8px radius. */
.scalar-app .t-doc__sidebar button[role="search"] {
  height: 32px;
  border-radius: 8px;
  border-color: var(--scalar-sidebar-search-border-color);
  box-shadow: var(--scalar-shadow-1);
  font-size: 13px;
}

.scalar-app .t-doc__sidebar button[role="search"] kbd {
  font-family: var(--scalar-font);
  font-size: 11px;
  text-transform: none;
}

/* Scalar's own promo buttons (Ask AI, editor links, Generate MCP) are not part of this site. */
.scalar-app .t-doc__sidebar .document-selector + div > button:not([role="search"]),
.scalar-app .scalar-mcp-layer {
  display: none !important;
}

/* Rows hover as an 8px rounded rectangle in the hover fill; the active one is accent on a tint. */
.scalar-app .t-doc__sidebar [class*="group/button"] {
  border-radius: 8px;
}

.scalar-app .t-doc__sidebar ul[class*="group/items"] > li > div[class*="group/group-button"] > button,
.scalar-app .t-doc__sidebar li > button[class*="group/button"] {
  padding: 7px 8px;
  line-height: 18px;
  font-size: 13.5px;
}

/* Group headings (x-tagGroups): the table of contents, 12px, strong, sentence case. */
.scalar-app .t-doc__sidebar li[data-sidebar-id*="/tag-group/"] > div[aria-selected] {
  padding: 14px 8px 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--scalar-sidebar-color-1);
  letter-spacing: 0;
}

.scalar-app .t-doc__sidebar li[data-sidebar-id*="/tag-group/"] > div[class*="spacer-before"] {
  height: 6px;
}

/* Tags are the 90 sections: medium weight so they read as a list of names. */
.scalar-app .t-doc__sidebar li[data-sidebar-id*="/tag-group/"] > ul > li > div > button {
  font-weight: 500;
}

/* Operations under an open tag: 13px, at most two lines, then an ellipsis. */
.scalar-app .t-doc__sidebar li[data-sidebar-id*="/tag/"] ul[class*="group/items"] > li > button {
  font-size: 13px;
  line-height: 17px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.scalar-app .t-doc__sidebar li[data-sidebar-id*="/tag/"] ul[class*="group/items"] > li > button > div[class*="button-label"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scalar-app .t-doc__sidebar .sidebar-heading-type {
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* Footer: attribution and the theme switch, small and muted. */
.scalar-app .t-doc__sidebar .darklight-reference {
  padding-top: 10px;
  border-top: 1px solid var(--scalar-sidebar-border-color);
  font-size: 12px;
}

/* ---------- Content ---------- */
.scalar-app .references-rendered {
  font-size: var(--scalar-paragraph);
}

/* Less air between operations than Scalar's 90px, plus a hairline so each one starts cleanly. */
.scalar-app .references-rendered .section {
  padding: 56px 0;
}

/* Scalar pads a section 24px at the sides on narrow screens; the rule above would take that
   gutter away, so put it back, 16px on phones. */
@media (max-width: 1000px) {
  .scalar-app .references-rendered .section {
    padding: 44px 24px;
  }
}

@media (max-width: 560px) {
  .scalar-app .references-rendered .section {
    padding: 36px 16px;
  }
}

.scalar-app .references-rendered .section + .section,
.scalar-app .references-rendered .section + div > .section,
.scalar-app .references-rendered .section + section,
.scalar-app .references-rendered .tag-section .section + .section {
  border-top: 1px solid var(--scalar-border-color);
}

/* Headings: the page title at 700, everything else at 600. */
.scalar-app h1.section-header-label {
  font-family: var(--ken-font-display);
  font-size: var(--scalar-heading-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.scalar-app h2.section-header-label {
  font-size: var(--scalar-heading-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.scalar-app h3.section-header-label {
  font-size: var(--scalar-heading-3);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.scalar-app .section-header {
  margin-bottom: 12px;
}

/* Operation title row. The label is inline, so the wrapper sets the line box; Scalar's own
   rule for it is not in a layer, hence the extra ancestor to outrank it. */
.scalar-app .operation-layout .operation-title {
  font-size: var(--scalar-heading-3);
  line-height: 1.35;
}

.scalar-app .section-header-wrapper .section-header {
  font-size: var(--scalar-heading-2);
  line-height: 1.3;
}

.scalar-app .security-requirement-badge {
  font-size: 12.5px;
  color: var(--scalar-color-2);
}

/* Prose. */
.scalar-app .markdown {
  --markdown-line-height: 1.6;
  --markdown-spacing-sm: 10px;
  --markdown-spacing-md: 14px;
  --scalar-refs-heading-spacing: 28px;
  font-size: var(--scalar-paragraph);
  color: var(--scalar-color-1);
}

.scalar-app .markdown p {
  max-width: 76ch;
}

.scalar-app .markdown h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.scalar-app .markdown h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.scalar-app .markdown h3 { font-size: 16px; font-weight: 600; }
.scalar-app .markdown h4,
.scalar-app .markdown h5,
.scalar-app .markdown h6 { font-size: 15px; font-weight: 600; }

.scalar-app .markdown a {
  color: var(--scalar-link-color);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--scalar-link-color) 35%, transparent);
  text-underline-offset: 2px;
  font-weight: 500;
}

.scalar-app .markdown a:hover {
  color: var(--scalar-link-color-hover);
  text-decoration-color: currentColor;
}

/* Inline code: mono, one size down, a sunken chip with a hairline. */
.scalar-app .markdown code:not(pre code) {
  font-family: var(--scalar-font-code);
  font-size: 0.86em;
  background: var(--scalar-background-2);
  box-shadow: var(--ken-ring);
  border-radius: 4px;
  padding: 1px 4px;
  color: var(--scalar-color-1);
  word-break: break-word;
}

.scalar-app .markdown a code:not(pre code) {
  color: inherit;
}

.scalar-app .markdown pre {
  background: var(--scalar-background-2);
  box-shadow: var(--ken-ring);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.scalar-app .markdown pre code {
  font-family: var(--scalar-font-code);
}

.scalar-app .markdown ul,
.scalar-app .markdown ol {
  gap: 4px;
  padding-left: 1.4em;
}

.scalar-app .markdown li {
  padding-left: 4px;
}

.scalar-app .markdown table {
  width: 100%;
  border: 0;
  box-shadow: var(--ken-ring);
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0 16px;
}

.scalar-app .markdown td,
.scalar-app .markdown th {
  font-size: 13.5px;
  padding: 8px 12px;
}

.scalar-app .markdown th {
  font-weight: 600;
  color: var(--scalar-color-2);
}

.scalar-app .markdown blockquote {
  margin: 0 0 var(--markdown-spacing-md);
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--scalar-border-color);
  color: var(--scalar-color-2);
}

.scalar-app .markdown hr {
  border: 0;
  border-top: 1px solid var(--scalar-border-color);
  margin: 24px 0;
}

/* Parameters and schema properties. */
.scalar-app .property-name {
  font-size: 13px;
  font-weight: 500;
}

.scalar-app .property-detail,
.scalar-app .property-detail-value {
  font-size: 12px;
  color: var(--scalar-color-3);
}

.scalar-app .property-required {
  color: var(--scalar-color-orange);
  font-size: 11.5px;
  font-weight: 500;
}

.scalar-app .property-description .markdown,
.scalar-app .parameter-item .markdown,
.scalar-app .property .markdown {
  font-size: 13.5px;
  color: var(--scalar-color-2);
}

.scalar-app .property-description .markdown code:not(pre code),
.scalar-app .property .markdown code:not(pre code) {
  font-size: 0.9em;
}

.scalar-app .property-example-value,
.scalar-app .property-enum-value,
.scalar-app .property-default-value {
  font-family: var(--scalar-font-code);
  font-size: 12px;
}

/* Cards: request, response, endpoints list. 12px radius, hairline, no heavy border. */
.scalar-app .scalar-card {
  border-color: var(--scalar-border-color);
  border-radius: 12px;
}

.scalar-app .scalar-card-header {
  font-size: 13px;
}

.scalar-app .scalar-card .scalar-code-block,
.scalar-app .scalar-code-block pre,
.scalar-app .scalar-code-block code {
  font-size: 12.5px;
  line-height: 1.55;
}

.scalar-app .endpoints .endpoint {
  font-size: 13px;
  padding: 5px 12px;
}

.scalar-app .endpoint-path {
  font-family: var(--scalar-font-code);
  font-size: 12.5px;
}

.scalar-app .endpoint-method,
.scalar-app .request-method {
  font-family: var(--scalar-font-code);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Introduction: the version badges and the download link. */
.scalar-app .introduction-section .badge {
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 2px 9px;
  box-shadow: var(--ken-ring);
  background: var(--scalar-background-2);
  color: var(--scalar-color-2);
}

.scalar-app .download-button {
  font-size: 13.5px;
  font-weight: 500;
}

.scalar-app .introduction-card-item,
.scalar-app .introduction-card-row {
  font-size: 13.5px;
}

/* Search modal and dropdowns inherit the tokens; keep their text at UI size. */
.scalar-app .scalar-search-input,
.scalar-app [role="listbox"],
.scalar-app [role="menu"] {
  font-size: 13.5px;
}

/* ---------- Static pages (changelog, no-JavaScript fallback) ---------- */
.ken-page {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  font-family: var(--scalar-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--scalar-color-1);
}

.ken-page h1 {
  font-family: var(--ken-font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 12px;
}

.ken-page h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 48px 0 4px;
}

.ken-page p {
  margin: 0 0 14px;
  max-width: 72ch;
}

.ken-page a {
  color: var(--scalar-link-color);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--scalar-link-color) 35%, transparent);
  text-underline-offset: 2px;
  font-weight: 500;
}

.ken-page a:hover {
  color: var(--scalar-link-color-hover);
  text-decoration-color: currentColor;
}

.ken-page code {
  font-family: var(--scalar-font-code);
  font-size: 0.86em;
  background: var(--scalar-background-2);
  box-shadow: var(--ken-ring);
  border-radius: 4px;
  padding: 1px 5px;
}

.ken-lede {
  color: var(--scalar-color-2);
}

.ken-muted {
  color: var(--scalar-color-3);
  font-size: 13.5px;
}

.ken-version-meta {
  margin: 0 0 16px;
  color: var(--scalar-color-3);
  font-size: 13.5px;
}

/* Changelog entries: a kind pill, the operation, the summary, a migration note when there is one. */
.ken-entry {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--scalar-border-color);
}

.ken-entry:last-child {
  border-bottom: 1px solid var(--scalar-border-color);
}

.ken-entry-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ken-kind {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-self: start;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: var(--scalar-background-2);
  color: var(--scalar-color-2);
  box-shadow: var(--ken-ring);
  margin-top: 1px;
}

.ken-kind-added {
  background: var(--ken-pill-added-bg);
  color: var(--ken-pill-added-ink);
  box-shadow: none;
}

.ken-kind-breaking,
.ken-kind-removed {
  background: var(--ken-pill-breaking-bg);
  color: var(--ken-pill-breaking-ink);
  box-shadow: none;
}

.ken-kind-deprecated {
  background: var(--ken-pill-warn-bg);
  color: var(--ken-pill-warn-ink);
  box-shadow: none;
}

.ken-entry-body {
  min-width: 0;
}

.ken-entry-op {
  display: block;
  margin: 0 0 4px;
  font-family: var(--scalar-font-code);
  font-size: 13px;
  font-weight: 500;
  color: var(--scalar-color-1);
  word-break: break-word;
}

.ken-entry-summary {
  margin: 0;
  max-width: 72ch;
}

.ken-entry-date {
  margin: 0;
  padding-left: 1px;
  font-size: 12px;
  line-height: 16px;
  color: var(--scalar-color-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ken-entry-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--scalar-background-2);
  box-shadow: var(--ken-ring);
  font-size: 13.5px;
  color: var(--scalar-color-2);
}

.ken-entry-note strong {
  color: var(--scalar-color-1);
  font-weight: 600;
}

.ken-entry-fixes {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--scalar-color-2);
}

.ken-entry-fixes li {
  margin: 2px 0;
}

.ken-entry-fixes code {
  font-size: 0.9em;
}

.ken-status {
  color: var(--scalar-color-3);
  font-size: 13.5px;
}

@media (max-width: 600px) {
  .ken-page {
    padding: 28px 18px 80px;
  }
  .ken-page h1 {
    font-size: 28px;
  }
  .ken-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ken-entry-side {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
}
