/*
 * Redoc 3.1.0 puts the class "redoc light" or "redoc dark" on its wrapper. Its own switch can
 * choose light while <html> has no data-theme and the system is dark, so the :has(.redoc...)
 * selectors follow the wrapper.
 */

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/Content/fonts/karla-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/Content/fonts/karla-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/Content/fonts/karla-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rail-text: #f0ebf0;
  --rail-text-soft: #b4b0b9;
  --rail-line: #3a3940;
  --rail-active: #25252b;
  --accent: #00e65f;
  --button: #326446;
  --button-text: #f0ebf0;
  --button-text-hover: #00e65f;
  --code-text: #f0ebf0;
  --code-text-soft: #b4b0b9;
  --code-line: #3a3940;

  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Archia", "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

:root,
:root:has(.redoc.light) {
  --text: #1e1e23;
  --text-soft: #57535d;
  --page: #ffffff;
  --surface: #f5f5f5;
  --line: #e3e0e6;
  --rail: #1e1e23;
  --link: #326446;
  --note: #d4f4dd;
  --code: #1e1e23;
  --show-moon: block;
  --show-sun: none;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f0ebf0;
    --text-soft: #b4b0b9;
    --page: #1e1e23;
    --surface: #25252b;
    --line: #3a3940;
    --rail: #141417;
    --link: #00e65f;
    --note: #1f3a2a;
    --code: #141417;
    --show-moon: none;
    --show-sun: block;
    color-scheme: dark;
  }
}

:root[data-theme="dark"],
:root:has(.redoc.dark) {
  --text: #f0ebf0;
  --text-soft: #b4b0b9;
  --page: #1e1e23;
  --surface: #25252b;
  --line: #3a3940;
  --rail: #141417;
  --link: #00e65f;
  --note: #1f3a2a;
  --code: #141417;
  --show-moon: none;
  --show-sun: block;
  color-scheme: dark;
}
