@font-face {
  font-family: "Merriweather";
  src: url("/assets/merriweather-latin-wght-normal-95bbc1ac.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  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: "Merriweather";
  src: url("/assets/merriweather-latin-ext-wght-normal-eb1b96b7.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-latin-wght-normal-570a9648.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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: "Instrument Sans";
  src: url("/assets/instrument-sans-latin-ext-wght-normal-a083bc1c.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --tayl-docs-header-height: 3.75rem;
  --tayl-wordmark-color: #002a8c;
  --tayl-wordmark-color-dark: #afb7d2;
  --tayl-accent-color: #00ffef;
}

html {
  min-height: 100%;
  background: #fffcfa;
}

body {
  min-height: 100%;
  margin: 0;
  background: #fffcfa;
  color: #0e1630;
  -webkit-font-smoothing: antialiased;
}

.tayl-docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--tayl-docs-header-height);
  border-bottom: 1px solid #e1e0e6;
  background: rgb(255 252 250 / 94%);
  backdrop-filter: blur(12px);
}

.tayl-docs-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tayl-wordmark-color) 0 82%, var(--tayl-accent-color) 82% 100%);
  content: "";
}

.tayl-docs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 96rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.tayl-docs-header__brand,
.tayl-docs-header__links,
.tayl-docs-header__link {
  display: flex;
  align-items: center;
}

.tayl-docs-header__brand {
  min-width: 0;
  color: var(--tayl-wordmark-color);
  text-decoration: none;
}

.tayl-docs-header__wordmark {
  display: block;
  height: 1.5rem;
}

.tayl-docs-header__wordmark--on-dark,
body.dark-mode .tayl-docs-header__wordmark {
  display: none;
}

body.dark-mode .tayl-docs-header__wordmark--on-dark {
  display: block;
}

.tayl-docs-header__divider {
  width: 2px;
  height: 1.5rem;
  margin: 0 0.75rem;
  border-radius: 999px;
  background: var(--tayl-accent-color);
}

.tayl-docs-header__section {
  overflow: hidden;
  color: #56607a;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tayl-docs-header__links {
  gap: 0.25rem;
  margin-left: 1rem;
}

.tayl-docs-header__link {
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: #56607a;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 550;
  text-underline-offset: 0.2em;
  transition: background-color 150ms ease, color 150ms ease;
}

.tayl-docs-header__link:hover {
  background: #eeeaeb;
  color: var(--tayl-wordmark-color);
}

.tayl-docs-header__link:focus-visible {
  border-radius: 0.5rem;
  outline: 2px solid var(--tayl-wordmark-color);
  outline-offset: 2px;
}

.scalar-app {
  --scalar-font: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --scalar-font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --scalar-radius: 6px;
  --scalar-radius-lg: 10px;
  --scalar-radius-xl: 14px;
  --scalar-bold: 650;
  --scalar-semibold: 550;
  --scalar-sidebar-padding: 12px;
}

.references-layout {
  min-height: calc(100dvh - var(--tayl-docs-header-height));
}

.scalar-app :is(h1, h2, h3, .section-header-label) {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.scalar-app.light-mode,
.light-mode .scalar-app {
  --scalar-background-1: #fffcfa;
  --scalar-background-2: #faf4f0;
  --scalar-background-3: #eeeaeb;
  --scalar-background-accent: rgb(0 42 140 / 8%);
  --scalar-color-1: #0e1630;
  --scalar-color-2: #56607a;
  --scalar-color-3: #646d85;
  --scalar-color-accent: #002a8c;
  --scalar-border-color: #e1e0e6;
  --scalar-link-color: #002a8c;
  --scalar-link-color-hover: #002270;
  --scalar-button-1: #002a8c;
  --scalar-button-1-hover: #002270;
  --scalar-button-1-color: #faf4f0;
  --scalar-color-blue: #002a8c;
  --scalar-color-orange: #92400e;
  --scalar-sidebar-background-1: #faf4f0;
  --scalar-sidebar-color-1: #0e1630;
  --scalar-sidebar-color-2: #56607a;
  --scalar-sidebar-border-color: #e1e0e6;
  --scalar-sidebar-item-hover-background: #eeeaeb;
  --scalar-sidebar-item-hover-color: #002a8c;
  --scalar-sidebar-item-active-background: #e1e0e6;
  --scalar-sidebar-color-active: #002a8c;
  --scalar-sidebar-indent-border: #c8ccdc;
  --scalar-sidebar-indent-border-hover: #afb7d2;
  --scalar-sidebar-indent-border-active: #002a8c;
  --scalar-sidebar-search-background: #fffcfa;
  --scalar-sidebar-search-color: #56607a;
  --scalar-sidebar-search-border-color: #c8ccdc;
}

.scalar-app.dark-mode,
.dark-mode .scalar-app {
  --scalar-background-1: #001443;
  --scalar-background-2: #001d5e;
  --scalar-background-3: #0b2b75;
  --scalar-background-accent: rgb(175 183 210 / 12%);
  --scalar-color-1: #eef0f6;
  --scalar-color-2: #c3c9dc;
  --scalar-color-3: #a9b3cf;
  --scalar-color-accent: #afb7d2;
  --scalar-border-color: #0b2b75;
  --scalar-link-color: #afb7d2;
  --scalar-link-color-hover: #eef0f6;
  --scalar-button-1: #afb7d2;
  --scalar-button-1-hover: #afb7d2;
  --scalar-button-1-color: #001443;
  --scalar-color-blue: #afb7d2;
  --scalar-color-orange: #f59e0b;
  --scalar-sidebar-background-1: #000d2d;
  --scalar-sidebar-color-1: #eef0f6;
  --scalar-sidebar-color-2: #c3c9dc;
  --scalar-sidebar-border-color: #0b2b75;
  --scalar-sidebar-item-hover-background: #001d5e;
  --scalar-sidebar-item-hover-color: #eef0f6;
  --scalar-sidebar-item-active-background: #0b2b75;
  --scalar-sidebar-color-active: #afb7d2;
  --scalar-sidebar-indent-border: #3f5da5;
  --scalar-sidebar-indent-border-hover: #7d8fbe;
  --scalar-sidebar-indent-border-active: #afb7d2;
  --scalar-sidebar-search-background: #000d2d;
  --scalar-sidebar-search-color: #c3c9dc;
  --scalar-sidebar-search-border-color: #3f5da5;
  --scalar-shadow-1: none;
  --scalar-shadow-2: none;
}

body.dark-mode,
body.dark-mode .tayl-docs-header {
  background: #001443;
  color: #eef0f6;
}

body.dark-mode .tayl-docs-header {
  border-bottom-color: #0b2b75;
  background: rgb(0 20 67 / 94%);
}

body.dark-mode .tayl-docs-header__brand {
  color: var(--tayl-wordmark-color-dark);
}

body.dark-mode .tayl-docs-header__section,
body.dark-mode .tayl-docs-header__link {
  color: #c3c9dc;
}

body.dark-mode .tayl-docs-header__link:hover {
  background: #001d5e;
  color: #eef0f6;
}

body.dark-mode .tayl-docs-header__link:focus-visible {
  outline-color: #afb7d2;
}

.t-doc__sidebar {
  top: var(--tayl-docs-header-height) !important;
  height: calc(100dvh - var(--tayl-docs-header-height)) !important;
}

.t-doc__header {
  top: var(--tayl-docs-header-height) !important;
}

.t-doc__sidebar a[href*="scalar.com"] {
  display: none;
}

@media (max-width: 639px) {
  .tayl-docs-header__divider {
    margin: 0 0.625rem;
  }

  .tayl-docs-header__section {
    font-size: 0.8125rem;
  }

  .tayl-docs-header__link {
    padding: 0 0.5rem;
  }

  .tayl-docs-header__link--secondary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tayl-docs-header__link {
    transition: none;
  }
}
