/* docs.adrasis.com: GitBook's layout in the Adrasis brand colors. */

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/exo2-v26-latin-ext.woff2') format('woff2');
  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: 'Exo 2';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/exo2-v26-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-v24-latin-ext.woff2') format('woff2');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-v24-latin.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 {
  --brand: #0f75bc;
  --brand-hover: #0b5e97;
  --brand-soft: rgba(15, 117, 188, 0.1);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #5c6b7f;
  --page: #ffffff;
  --surface: #f6f7f9;
  --border: #e3e6ea;
  --code-bg: #f1f3f6;
  --info: #0f75bc;
  --success: #0e9f6e;
  --warning: #b45309;
  --danger: #c53030;
  --font-sans: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --header: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand: #4aa3e0;
    --brand-hover: #7cc0ee;
    --brand-soft: rgba(74, 163, 224, 0.14);
    --text: #e6e9ee;
    --text-secondary: #b3bcc8;
    --text-muted: #8e99a8;
    --page: #0f141b;
    --surface: #161c25;
    --border: #262f3b;
    --code-bg: #1b222d;
    --info: #4aa3e0;
    --success: #34c08f;
    --warning: #f0a54a;
    --danger: #f07171;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --brand: #4aa3e0;
  --brand-hover: #7cc0ee;
  --brand-soft: rgba(74, 163, 224, 0.14);
  --text: #e6e9ee;
  --text-secondary: #b3bcc8;
  --text-muted: #8e99a8;
  --page: #0f141b;
  --surface: #161c25;
  --border: #262f3b;
  --code-bg: #1b222d;
  --info: #4aa3e0;
  --success: #34c08f;
  --warning: #f0a54a;
  --danger: #f07171;
  color-scheme: dark;
}

/* Theme-bound images: the light one unless the dark theme is on. */
.only-dark { display: none !important; }
:root[data-theme='dark'] .only-dark { display: inline-block !important; }
:root[data-theme='dark'] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark { display: inline-block !important; }
  :root:not([data-theme='light']) .only-light { display: none !important; }
}
figure img.only-dark, figure img.only-light { max-width: 100%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--page); padding: 8px 12px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header);
  padding: 0 24px;
  background: var(--page);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 24px; width: auto; }
.spaces { display: flex; gap: 4px; margin-left: 16px; }
.spaces a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.spaces a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.spaces a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.spaces-mobile { display: none; margin: 0 0 20px; }
.search-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 220px;
  padding: 7px 10px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}
.search-button svg, .theme-button svg { width: 16px; height: 16px; flex: none; }
.search-button span { display: flex; align-items: center; gap: 8px; }
.search-button kbd {
  margin-left: auto;
  font: 12px var(--font-mono);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--page);
}
.languages { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.languages a { padding: 5px 9px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.languages a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.languages a:hover { text-decoration: none; background: var(--surface); }
.theme-button, .menu-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--page);
  color: var(--text-secondary);
  cursor: pointer;
}
.theme-button { display: grid; place-items: center; }
.menu-button { display: none; position: relative; }
.menu-button span, .menu-button span::before, .menu-button span::after {
  position: absolute;
  left: 9px;
  width: 16px;
  height: 2px;
  background: currentColor;
  content: '';
}
.menu-button span { top: 16px; }
.menu-button span::before { left: 0; top: -5px; }
.menu-button span::after { left: 0; top: 5px; }

/* Three columns */
.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 240px;
  max-width: 1440px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow-y: auto;
  padding: 24px 16px 48px 24px;
  border-right: 1px solid var(--border);
  font-size: 15px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar ul ul { margin-left: 12px; padding-left: 8px; border-left: 1px solid var(--border); }
.sidebar li a {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.sidebar li a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.sidebar li a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-section + .nav-section { margin-top: 20px; }
.nav-group {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

main { min-width: 0; padding: 32px 48px 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; font-size: 14px; color: var(--brand); font-weight: 600; }
.crumbs span[aria-hidden] { color: var(--text-muted); font-weight: 400; }
h1 { margin: 0 0 8px; font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.01em; }
.lead { margin: 0 0 28px; font-size: 1.1rem; color: var(--text-secondary); }

.toc {
  position: sticky;
  top: var(--header);
  align-self: start;
  max-height: calc(100vh - var(--header));
  overflow-y: auto;
  padding: 32px 24px 32px 8px;
  font-size: 14px;
}
.toc p { margin: 0 0 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 1px solid var(--border); }
.toc li a { display: block; padding: 3px 0; color: var(--text-secondary); line-height: 1.4; }
.toc li.toc-3 a { padding-left: 12px; }
.toc li a.active { color: var(--brand); font-weight: 600; }

/* Page content */
.prose { max-width: 780px; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: 1.5rem; line-height: 1.3; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.2rem; }
.prose h4 { margin: 1.5em 0 0.4em; font-size: 1.05rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li + li { margin-top: 0.25em; }
.prose img { max-width: 100%; height: auto; }
.prose figure { margin: 1.5em 0; text-align: center; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.prose code {
  font: 0.88em var(--font-mono);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
.prose pre {
  position: relative;
  margin: 0 0 1.2em;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--page);
  color: var(--text-muted);
  font: 12px var(--font-sans);
  cursor: pointer;
  opacity: 0;
}
.prose pre:hover .copy, .copy:focus { opacity: 1; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose blockquote { margin: 0 0 1em; padding: 4px 16px; border-left: 3px solid var(--border); color: var(--text-secondary); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* GitBook blocks */
.hint {
  margin: 0 0 1.2em;
  padding: 12px 16px 2px 44px;
  border-radius: 10px;
  border: 1px solid;
  position: relative;
}
.hint::before { position: absolute; left: 16px; top: 12px; font-weight: 700; }
.hint-info { border-color: color-mix(in srgb, var(--info) 35%, transparent); background: color-mix(in srgb, var(--info) 8%, transparent); }
.hint-info::before { content: 'ⓘ'; color: var(--info); }
.hint-success { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.hint-success::before { content: '✓'; color: var(--success); }
.hint-warning { border-color: color-mix(in srgb, var(--warning) 35%, transparent); background: color-mix(in srgb, var(--warning) 8%, transparent); }
.hint-warning::before { content: '!'; color: var(--warning); }
.hint-danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.hint-danger::before { content: '⚠'; color: var(--danger); }

.stepper { list-style: none; counter-reset: step; margin: 0 0 1.2em; padding: 0; }
.stepper > .step { position: relative; counter-increment: step; padding: 0 0 8px 48px; margin: 0; }
.stepper > .step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.stepper > .step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: calc(0.2em + 36px);
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.stepper > .step > :first-child { margin-top: 0; }
.stepper h3, .stepper h4 { margin-top: 0.2em; }

.operation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}
.operation:hover { border-color: var(--brand); text-decoration: none; color: var(--text); }
.operation code { background: none; border: 0; padding: 0; font-weight: 600; }
.operation span:last-child { color: var(--text-secondary); font-size: 15px; }
.method { font: 700 12px var(--font-mono); padding: 3px 8px; border-radius: 6px; color: #fff; }
.method-get { background: #0e9f6e; }
.method-post { background: #0f75bc; }
.method-put, .method-patch { background: #b45309; }
.method-delete { background: #c53030; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: 780px; }
.pager a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager small { display: block; color: var(--text-muted); font-weight: 400; font-size: 13px; }
.pager .next { text-align: right; }

.prose .code-wrap pre, .prose .code-wrap pre code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Search */
.search-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  margin: 10vh auto auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--page);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.search-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.search-dialog {
  --pagefind-ui-primary: var(--brand);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--page);
  --pagefind-ui-border: var(--border);
  --pagefind-ui-tag: var(--surface);
  --pagefind-ui-font: var(--font-sans);
  --pagefind-ui-scale: 0.85;
}
.search-dialog mark { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.search-dialog .pagefind-ui__search-clear {
  top: 50%;
  right: 10px;
  height: auto;
  transform: translateY(-50%);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  font: 13px var(--font-sans);
}

.not-found { max-width: 640px; margin: 15vh auto; padding: 0 16px; text-align: center; }
.reference { padding: 0; }
.top-reference .spaces { margin-left: 16px; }

/* Narrower screens: no "On this page", then the menu as a drawer. */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .top { padding: 0 16px; gap: 10px; }
  .menu-button { display: block; }
  .spaces { display: none; }
  .search-button { min-width: 0; gap: 8px; }
  .search-button kbd { display: none; }
  .layout { display: block; }
  .sidebar {
    position: fixed;
    top: var(--header);
    left: 0;
    z-index: 15;
    width: min(320px, 86vw);
    background: var(--page);
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }
  body.menu-open .sidebar { transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
  .sidebar .spaces-mobile { display: flex; margin-left: 0; }
  main { padding: 20px 16px 48px; }
  h1 { font-size: 1.7rem; }
  .pager { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .search-button span::after { content: ''; }
  .languages a { padding: 5px 7px; }
}

/* Redoc's own badge links out and loads its logo from a third-party host. */
.reference a[href*='redocly.com'] { display: none !important; }
