/**
 * CheckHub theme for the Scalar API Reference.
 *
 * Colors and typography come from the Lasso design system tokens
 * (@checkhub.io/lasso-tokens). The product has no official dark palette, so the
 * dark theme is derived from the brand navy the product uses as its app frame.
 *
 * Selectors are doubled (.light-mode.light-mode) because Scalar injects its own
 * theme <style> after this stylesheet; equal specificity would lose.
 */

@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/Gilroy-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/Gilroy-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/Gilroy-Bold.woff2') format('woff2');
}

:root {
  --scalar-custom-header-height: 56px;
}

body {
  margin: 0;
  font-family: 'Gilroy', ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
}

.light-mode.light-mode,
.dark-mode.dark-mode {
  --scalar-font: 'Gilroy', ui-sans-serif, system-ui, sans-serif;
  --scalar-font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --scalar-radius: 8px;
  --scalar-radius-lg: 12px;
}

.light-mode.light-mode {
  --scalar-color-1: #100045;
  --scalar-color-2: rgba(16, 0, 69, 0.6);
  --scalar-color-3: #737373;
  --scalar-color-accent: #0064ff;
  --scalar-background-1: #ffffff;
  --scalar-background-2: #f5f5f5;
  --scalar-background-3: #e8e8e8;
  --scalar-background-accent: rgba(0, 100, 255, 0.05);
  --scalar-border-color: #e8e8e8;
  --scalar-color-green: #05ad48;
  --scalar-color-red: #ff005b;
  --scalar-color-orange: #f48c11;
  --scalar-color-blue: #0064ff;
  --scalar-color-purple: #ac13ed;
  --scalar-button-1: #0064ff;
  --scalar-button-1-hover: #100045;
  --scalar-button-1-color: #ffffff;
}

.dark-mode.dark-mode {
  --scalar-color-1: #ffffff;
  --scalar-color-2: rgba(255, 255, 255, 0.75);
  --scalar-color-3: rgba(255, 255, 255, 0.5);
  --scalar-color-accent: #4d94ff;
  --scalar-background-1: #0a002b;
  --scalar-background-2: #100045;
  --scalar-background-3: #1c0d55;
  --scalar-background-accent: rgba(0, 100, 255, 0.15);
  --scalar-border-color: rgba(255, 255, 255, 0.12);
  --scalar-color-green: #65eed5;
  --scalar-color-red: #ff005b;
  --scalar-color-orange: #f48c11;
  --scalar-color-blue: #4d94ff;
  --scalar-color-purple: #d6bdff;
  --scalar-button-1: #0064ff;
  --scalar-button-1-hover: #4d94ff;
  --scalar-button-1-color: #ffffff;
}

.ch-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: var(--scalar-custom-header-height);
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  color: #100045;
  font-family: 'Gilroy', ui-sans-serif, system-ui, sans-serif;
}

.dark-mode .ch-header {
  background: #0a002b;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ch-header__logo {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.ch-header__nav a {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ch-header__nav a:hover {
  color: #0064ff;
}

.dark-mode .ch-header__nav a:hover {
  color: #4d94ff;
}

/**
 * Vendor watermark removal (permitted by Scalar's MIT license):
 * - .scalar-mcp-layer is the "Generate MCP" sidebar upsell (no config flag exists);
 * - the sidebar footer link is the "Powered by Scalar" reference.
 */
.scalar-mcp-layer {
  display: none !important;
}

.darklight-reference a[href*='scalar.com'],
a[href^='https://www.scalar.com'],
a[href^='https://scalar.com'] {
  display: none !important;
}
