@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;
}

/* A public page with no in-app theme toggle, so dark mode follows the system preference. */
:root {
  --tayl-docs-header-height: 3.75rem;
  --tayl-accent-color: #00ffef;
  --tayl-docs-background: #fffcfa;
  --tayl-docs-surface: #faf4f0;
  --tayl-docs-border: #e1e0e6;
  --tayl-docs-heading: #0e1630;
  --tayl-docs-text: #2b3450;
  --tayl-docs-muted: #56607a;
  --tayl-docs-link: #002a8c;
  --tayl-docs-hover: #eeeaeb;
  --tayl-docs-header-background: rgb(255 252 250 / 94%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --tayl-docs-background: #001443;
    --tayl-docs-surface: #001d5e;
    --tayl-docs-border: #0b2b75;
    --tayl-docs-heading: #eef0f6;
    --tayl-docs-text: #dde1ec;
    --tayl-docs-muted: #c3c9dc;
    --tayl-docs-link: #afb7d2;
    --tayl-docs-hover: #001d5e;
    --tayl-docs-header-background: rgb(0 20 67 / 94%);
  }
}

html {
  min-height: 100%;
  background: var(--tayl-docs-background);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--tayl-docs-background);
  color: var(--tayl-docs-text);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tayl-docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--tayl-docs-header-height);
  border-bottom: 1px solid var(--tayl-docs-border);
  background: var(--tayl-docs-header-background);
  backdrop-filter: blur(12px);
}

.tayl-docs-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tayl-docs-link) 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: 72rem;
  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-docs-link);
  text-decoration: none;
}

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

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

@media (prefers-color-scheme: dark) {
  .tayl-docs-header__wordmark {
    display: none;
  }

  .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: var(--tayl-docs-muted);
  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: var(--tayl-docs-muted);
  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: var(--tayl-docs-hover);
  color: var(--tayl-docs-heading);
}

.tayl-docs-header__link:focus-visible,
.tayl-docs a:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid var(--tayl-docs-link);
  outline-offset: 2px;
}

.tayl-docs {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  box-sizing: border-box;
  line-height: 1.6;
}

.tayl-docs__page {
  min-width: 0;
  max-width: 48rem;
}

.tayl-docs__contents {
  display: none;
}

/* Wide enough for the contents beside the page: the page keeps its reading width and the contents stay in view. */
@media (min-width: 64rem) {
  .tayl-docs {
    display: grid;
    grid-template-columns: minmax(0, 48rem) minmax(0, 14rem);
    justify-content: space-between;
    column-gap: 3rem;
  }

  .tayl-docs__page {
    grid-row: 1;
    grid-column: 1;
  }

  .tayl-docs__contents {
    position: sticky;
    top: calc(var(--tayl-docs-header-height) + 2rem);
    display: block;
    grid-row: 1;
    grid-column: 2;
    align-self: start;
    max-height: calc(100dvh - var(--tayl-docs-header-height) - 4rem);
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

.tayl-docs__contents-title {
  margin: 0 0 0.75rem;
  color: var(--tayl-docs-heading);
  font-weight: 650;
}

.tayl-docs__contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tayl-docs__contents li {
  margin: 0.375rem 0;
}

.tayl-docs__contents ul ul {
  margin-top: 0.375rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--tayl-docs-border);
}

.tayl-docs .tayl-docs__contents a {
  color: var(--tayl-docs-muted);
  text-decoration: none;
}

.tayl-docs .tayl-docs__contents a:hover {
  color: var(--tayl-docs-heading);
  text-decoration: underline;
}

.tayl-docs h2,
.tayl-docs h3,
.tayl-docs h4 {
  scroll-margin-top: calc(var(--tayl-docs-header-height) + 1rem);
}

.tayl-docs h1,
.tayl-docs h2,
.tayl-docs h3 {
  color: var(--tayl-docs-heading);
  font-family: "Merriweather", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}

.tayl-docs h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.tayl-docs h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tayl-docs-border);
  font-size: 1.5rem;
}

.tayl-docs h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.tayl-docs h4 {
  margin: 1.75rem 0 0.5rem;
  color: var(--tayl-docs-heading);
  font-size: 1rem;
  font-weight: 650;
  text-wrap: balance;
}

.tayl-docs p,
.tayl-docs li {
  text-wrap: pretty;
}

.tayl-docs blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--tayl-docs-border);
  color: var(--tayl-docs-muted);
  font-size: 0.875rem;
}

.tayl-docs blockquote p {
  margin: 0;
}

.tayl-docs a {
  color: var(--tayl-docs-link);
  text-underline-offset: 0.2em;
  overflow-wrap: break-word;
}

.tayl-docs code {
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
  background: var(--tayl-docs-surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
  overflow-wrap: break-word;
}

.tayl-docs pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--tayl-docs-border);
  border-radius: 0.5rem;
  background: var(--tayl-docs-surface);
}

.tayl-docs pre code {
  padding: 0;
  background: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tayl-docs .table-wrapper {
  overflow-x: auto;
}

.tayl-docs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.tayl-docs th,
.tayl-docs td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--tayl-docs-border);
  text-align: left;
  vertical-align: top;
}

.tayl-docs th {
  color: var(--tayl-docs-heading);
  font-weight: 650;
}

@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;
  }

  .tayl-docs h1 {
    font-size: 1.625rem;
  }
}

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