:root {
  --navy-950: #12052f;
  --navy-800: #281552;
  --blue-700: #08709f;
  --blue-600: #0f8fc8;
  --blue-100: #e7f6fc;
  --green-700: #08785d;
  --green-100: #e5f6f0;
  --ink-900: #252330;
  --ink-700: #565463;
  --ink-500: #777482;
  --line: #dddde6;
  --surface: #f6f7fa;
  --surface-strong: #eeeff4;
  --white: #ffffff;
  --header-height: 64px;
  --sidebar-width: 252px;
  --toc-width: 210px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  background: var(--white);
  color: var(--ink-900);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
}

body.nav-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue-700);
}

a:hover,
a:focus-visible {
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid rgba(15, 143, 200, 0.36);
  outline-offset: 3px;
}

.skip-link {
  background: var(--navy-950);
  color: var(--white);
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 100;
}

.skip-link:focus {
  top: 10px;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar__inner {
  align-items: center;
  display: flex;
  height: 100%;
  margin: 0 auto;
  max-width: 1480px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  color: var(--navy-950);
  display: inline-flex;
  gap: 16px;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy-950);
}

.brand img {
  display: block;
  height: 28px;
  object-fit: contain;
  width: 116px;
}

.brand span {
  border-left: 1px solid var(--line);
  font-size: 15px;
  font-weight: 750;
  padding-left: 16px;
}

.search-trigger {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-700);
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  height: 38px;
  margin-left: auto;
  padding: 0 14px;
}

.search-trigger:hover {
  background: var(--surface-strong);
  border-color: #c9c9d5;
  color: var(--navy-950);
}

.search-trigger svg,
.icon-button svg,
.search-input svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--navy-950);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.layout {
  display: grid;
  gap: 44px;
  grid-template-columns: var(--sidebar-width) minmax(0, 860px) var(--toc-width);
  margin: 0 auto;
  max-width: 1480px;
  min-height: calc(100vh - var(--header-height));
  padding: 0 28px;
}

.sidebar {
  border-right: 1px solid #ececf1;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 32px 24px 28px 0;
  position: sticky;
  top: var(--header-height);
}

.nav-section + .nav-section {
  margin-top: 25px;
}

.nav-section h2 {
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.nav-section ul,
.page-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-section a {
  border-left: 3px solid transparent;
  color: var(--ink-700);
  display: block;
  font-size: 14px;
  line-height: 1.35;
  padding: 8px 11px;
  text-decoration: none;
}

.nav-section a:hover,
.nav-section a:focus-visible {
  background: var(--surface);
  color: var(--navy-950);
}

.nav-section a[aria-current="page"] {
  background: var(--blue-100);
  border-left-color: var(--blue-600);
  color: var(--navy-950);
  font-weight: 750;
}

.environment-note {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 19px 11px 0;
}

.environment-note span {
  color: var(--ink-500);
  display: block;
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.environment-note code {
  color: var(--navy-950);
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.content {
  min-width: 0;
  padding: 52px 0 0;
}

article {
  min-height: calc(100vh - 180px);
  padding-bottom: 72px;
}

.eyebrow {
  color: var(--blue-700);
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 13px;
}

h1,
h2,
h3 {
  color: var(--navy-950);
  letter-spacing: 0;
}

h1 {
  font-size: 40px;
  line-height: 1.16;
  margin: 0;
  max-width: 780px;
}

.lede {
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 790px;
}

article section > h2 {
  border-top: 1px solid var(--line);
  font-size: 27px;
  line-height: 1.3;
  margin: 48px 0 18px;
  padding-top: 27px;
}

article h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 31px 0 13px;
}

article p,
article li {
  font-size: 16px;
  line-height: 1.75;
}

article p {
  margin: 14px 0;
}

article ul,
article ol {
  margin: 14px 0;
  padding-left: 25px;
}

article li + li {
  margin-top: 7px;
}

article a:not(.button) {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

article a:not(.button):visited {
  color: #62418f;
}

article a:not(.button):hover,
article a:not(.button):focus-visible {
  color: var(--navy-950);
  text-decoration-thickness: 2px;
}

code {
  background: #f0f1f4;
  border-radius: 4px;
  color: #3d3a47;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  padding: 2px 5px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  text-decoration: none;
}

.button--primary {
  background: var(--navy-950);
  color: var(--white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--navy-800);
  color: var(--white);
}

.button--secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy-950);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--blue-600);
  color: var(--navy-950);
}

.operation-flow {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 23px 0 0;
  padding: 0;
}

.operation-flow li {
  border-top: 3px solid var(--blue-600);
  min-width: 0;
  padding-top: 14px;
}

.operation-flow li > span {
  align-items: center;
  background: var(--blue-100);
  border-radius: 50%;
  color: var(--blue-700);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  margin-bottom: 11px;
  width: 30px;
}

.operation-flow strong {
  color: var(--navy-950);
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.operation-flow p {
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.55;
  margin: 7px 0 0;
}

.endpoint {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: 6px;
  display: flex;
  gap: 16px;
  margin: 18px 0 14px;
  min-height: 58px;
  padding: 10px 14px;
}

.endpoint code {
  background: transparent;
  color: var(--navy-950);
  font-size: 15px;
  font-weight: 750;
  overflow-wrap: anywhere;
  padding: 0;
}

.method {
  border-radius: 4px;
  color: var(--white);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  min-width: 62px;
  padding: 9px 10px;
  text-align: center;
}

.method--post {
  background: var(--navy-800);
}

.method--get {
  background: var(--green-700);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.badge {
  background: var(--blue-100);
  border: 1px solid #b8dfea;
  border-radius: 4px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 750;
  padding: 5px 8px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 18px 0 22px;
  max-width: 100%;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--navy-950);
  font-weight: 800;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

td code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.code-block {
  background: #171322;
  border: 1px solid #332a48;
  border-radius: 6px;
  margin: 18px 0 24px;
  overflow: hidden;
}

.code-block__bar {
  align-items: center;
  background: #211a30;
  border-bottom: 1px solid #3c3153;
  color: #c8c1d8;
  display: flex;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 750;
  height: 39px;
  justify-content: space-between;
  padding: 0 10px 0 16px;
  text-transform: uppercase;
}

.copy-button {
  background: transparent;
  border: 1px solid #54466f;
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  height: 27px;
  padding: 0 9px;
}

.copy-button:hover {
  background: #302641;
}

.code-block pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 19px 21px 22px;
}

.code-block code {
  background: transparent;
  color: #f4f1f8;
  display: block;
  font-size: 13px;
  line-height: 1.65;
  padding: 0;
  white-space: pre;
}

.callout {
  border: 1px solid #a8d8e8;
  border-left: 4px solid var(--blue-600);
  border-radius: 6px;
  margin: 23px 0;
  padding: 16px 18px;
}

.callout--warning {
  background: #fff9e9;
  border-color: #e4b84d;
}

.callout--important {
  background: var(--blue-100);
}

.callout strong {
  color: var(--navy-950);
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.callout p {
  font-size: 14px;
  margin: 0;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  color: var(--green-700);
  content: "\2713";
  font-weight: 900;
  left: 2px;
  position: absolute;
}

.page-toc {
  align-self: start;
  padding-top: 55px;
  position: sticky;
  top: var(--header-height);
}

.page-toc strong {
  color: var(--navy-950);
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}

.page-toc li {
  margin: 0;
}

.page-toc a {
  border-left: 2px solid transparent;
  color: var(--ink-700);
  display: block;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 0 6px 10px;
  text-decoration: none;
}

.page-toc a:hover,
.page-toc a:focus-visible {
  border-left-color: var(--blue-600);
  color: var(--navy-950);
}

.page-toc .toc-level-3 a {
  color: var(--ink-500);
  padding-left: 23px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 12px;
  padding: 22px 0 28px;
}

.search-dialog {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(18, 5, 47, 0.2);
  color: var(--ink-900);
  max-height: min(680px, calc(100vh - 40px));
  max-width: 680px;
  padding: 0;
  width: calc(100% - 32px);
}

.search-dialog::backdrop {
  background: rgba(18, 5, 47, 0.42);
}

.search-dialog__head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.search-dialog__head strong,
.search-dialog__head span {
  display: block;
}

.search-dialog__head strong {
  color: var(--navy-950);
  font-size: 16px;
}

.search-dialog__head span {
  color: var(--ink-700);
  font-size: 13px;
  margin-top: 3px;
}

.search-input {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-500);
  display: flex;
  gap: 10px;
  margin: 18px 20px 10px;
  padding: 0 13px;
}

.search-input input {
  border: 0;
  color: var(--ink-900);
  height: 46px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 20px 20px;
}

.search-results > p {
  color: var(--ink-700);
  font-size: 14px;
  margin: 18px 2px;
}

.search-results a {
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
  display: block;
  padding: 14px 3px;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus-visible {
  color: var(--navy-950);
}

.search-results strong,
.search-results span {
  display: block;
}

.search-results strong {
  font-size: 14px;
}

.search-results span {
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 3px;
}

.not-found {
  padding: 80px 0;
}

.not-found p {
  color: var(--ink-700);
  margin-bottom: 28px;
}

.mobile-only {
  display: none;
}

.nav-backdrop {
  background: rgba(18, 5, 47, 0.38);
  inset: var(--header-height) 0 0;
  position: fixed;
  z-index: 29;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .layout {
    grid-template-columns: var(--sidebar-width) minmax(0, 860px);
  }

  .page-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .mobile-only {
    display: inline-flex;
  }

  .topbar__inner {
    padding: 0 16px;
  }

  .topbar__inner > .icon-button {
    margin-right: 9px;
  }

  .brand {
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .search-trigger {
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
  }

  .search-trigger span {
    display: none;
  }

  .layout {
    display: block;
    padding: 0 20px;
  }

  .sidebar {
    background: var(--white);
    border-right: 1px solid var(--line);
    bottom: 0;
    height: auto;
    left: 0;
    max-width: 320px;
    padding: 0 20px 28px;
    position: fixed;
    top: var(--header-height);
    transform: translateX(-105%);
    transition: transform 160ms ease-out;
    width: calc(100% - 56px);
    z-index: 30;
  }

  .sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .sidebar__mobile-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: var(--navy-950);
    height: 58px;
    justify-content: space-between;
    margin-bottom: 19px;
  }

  .sidebar__mobile-head strong {
    font-size: 14px;
  }

  .content {
    padding-top: 38px;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 32px;
  }

  .lede {
    font-size: 16px;
    line-height: 1.65;
  }

  article section > h2 {
    font-size: 24px;
    margin-top: 42px;
  }

  article h3 {
    font-size: 18px;
  }

  article p,
  article li {
    font-size: 15px;
  }

  .operation-flow {
    display: block;
  }

  .operation-flow li {
    border-left: 3px solid var(--blue-600);
    border-top: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 8px 0 20px 14px;
  }

  .operation-flow li > span {
    margin: 0;
  }

  .endpoint {
    align-items: flex-start;
  }

  .endpoint code {
    padding-top: 7px;
  }

  .table-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 12px 13px;
  }

  .code-block pre {
    padding: 17px;
  }

  .code-block code {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
