@font-face {
  font-family: Manrope;
  src: url(manrope-cyrillic.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(manrope-latin.woff2) format("woff2");
  font-weight: 400 800;
  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;
}

:root {
  color-scheme: light;
  --ink: #181831;
  --muted: #5c6075;
  --soft: #f5f5fc;
  --line: #e3e5ee;
  --accent: #4c3cc2;
  --wash: #eeecff;
  --terminal: #1c1d34;
  --header: 72px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, pre:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
svg { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
code, pre, kbd { font-family: var(--mono); }
p { margin: .75rem 0 1rem; color: var(--muted); }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; margin: 0; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(2.3rem, 4.15vw, 4.3rem); }
h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
h3 { font-size: 1.14rem; margin: 1.4rem 0 .85rem; }
p code, li code, td code {
  font-size: .88em; background: var(--soft); padding: .13em .37em; border-radius: 4px; overflow-wrap: anywhere;
}
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 10; top: 6px; left: 6px; background: #fff; padding: .75rem; }
.topbar {
  position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header); max-width: 1600px; margin: auto; padding: 0 36px; display: flex;
  gap: 22px; align-items: center;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; font-weight: 800; letter-spacing: -.025em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { display: grid; line-height: 1.22; }
.brand small { font-weight: 650; font-size: .72rem; color: var(--muted); letter-spacing: .01em; margin-top: 4px; }
.search-trigger {
  margin-inline: auto; display: flex; align-items: center; gap: .65rem; width: min(100%, 355px);
  border: 1px solid var(--line); background: #f7f8fc; color: var(--muted); border-radius: 9px; height: 42px; padding: 0 .8rem;
  text-align: start; font-size: .875rem;
}
.search-trigger:hover { border-color: #aaa5e2; }
kbd { margin-left: auto; font-size: .73rem; background: #fff; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: .1rem .35rem; white-space: nowrap; }
.header-download { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .875rem; font-weight: 800; }
.header-download svg { color: var(--accent); }
.icon-button {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff;
}
.menu-toggle { display: none; }
.docs-layout {
  --nav-width: 228px; --toc-width: 202px;
  max-width: 1600px; display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr) var(--toc-width);
  gap: 36px; margin: 0 auto; padding: 0 36px;
}
.sidebar, .toc { position: sticky; top: var(--header); max-height: calc(100dvh - var(--header)); overflow-y: auto; align-self: start; }
.sidebar { padding: 31px 18px 24px 0; border-right: 1px solid var(--line); min-height: calc(100dvh - var(--header)); }
.side-label { margin: 0 10px 10px; color: var(--muted); font-size: .81rem; font-weight: 800; }
.sidebar nav > a, .subnav a { display: flex; align-items: center; gap: .62rem; border-radius: 7px; padding: .58rem .65rem; font-weight: 750; font-size: .88rem; color: var(--ink); }
.sidebar nav > a:hover, .subnav a:hover { background: var(--soft); text-decoration: none; }
.sidebar nav > a[aria-current] { color: #4231b1; background: var(--wash); }
.sidebar nav > a svg { color: var(--accent); }
.subnav { border-left: 1px solid var(--line); margin: .4rem 0 .45rem 1.2rem; padding-left: .5rem; }
.subnav a { color: var(--muted); padding: .36rem .5rem; font-weight: 650; }
.subnav a[aria-current] { color: var(--accent); }
.side-bottom { display: grid; gap: .65rem; margin-top: 27px; padding: 19px .65rem 0; border-top: 1px solid var(--line); font-size: .81rem; font-weight: 700; }
.side-bottom a, .breadcrumb a { color: var(--muted); }
main { min-width: 0; padding: 25px 0 0; outline: none; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; color: var(--ink); font-size: .82rem; font-weight: 700; margin-bottom: 20px; }
.breadcrumb svg { width: .8rem; height: .8rem; color: var(--muted); }
.toc { padding: 34px 0 16px 18px; }
.toc nav { border-left: 1px solid var(--line); padding-left: 14px; display: grid; gap: .62rem; }
.toc strong { display: flex; align-items: center; font-size: .82rem; gap: .35rem; margin-bottom: .22rem; }
.toc strong svg { width: 1rem; height: 1rem; color: var(--accent); }
.toc a { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.toc a[aria-current] { color: var(--accent); font-weight: 800; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid #dcd8fb; border-radius: 16px;
  container-type: inline-size;
  padding: clamp(21px, 3vw, 47px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(18px, 2vw, 36px); align-items: center;
  background: linear-gradient(116deg, #f4f3ff 14%, #eeebff 66%, #e4e0ff 100%);
}
.hero::before {
  position: absolute; inset: 0; z-index: -1; content: "";
  background-image: linear-gradient(#6554c61c 1px, transparent 1px), linear-gradient(90deg, #6554c61c 1px, transparent 1px);
  background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .38rem; color: #4d3bb3; font-size: .77rem;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 13px;
}
.eyebrow svg { width: 1.04rem; height: 1.04rem; }
.hero h1 { font-size: clamp(1.9rem, 7.35cqw, 4.2rem); letter-spacing: -.058em; }
.hero p { margin: 16px 0 20px; max-width: 34ch; font-size: 1rem; color: #484969; }
.hero-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.hero-actions a { display: inline-flex; align-items: center; min-height: 43px; padding: .56rem .9rem; border-radius: 8px; font-size: .83rem; font-weight: 800; }
.hero-actions a:hover { text-decoration: none; }
.primary { color: #fff; background: #4c3ac8; box-shadow: 0 3px 6px #4e3cbc32; }
.primary:hover { background: #3d2ead; }
.secondary { color: #4638a8; border: 1px solid #c9c2f2; background: #ffffff93; }
.secondary:hover { background: #fff; }
.hero-panel, .code-box { color: #edf0ff; background: var(--terminal); border: 1px solid #272944; border-radius: 12px; min-width: 0; overflow: hidden; }
.hero-panel { box-shadow: 0 16px 32px #29225833; }
.hero-panel-head, .code-bar { border-bottom: 1px solid #393b56; font-size: .76rem; font-weight: 750; display: flex; align-items: center; gap: .5rem; min-height: 41px; padding: 0 14px; color: #dce0f7; }
.hero-panel-head svg, .code-bar svg { width: 1rem; height: 1rem; color: #c3b9ff; }
.hero-endpoint { display: flex; gap: .6rem; align-items: center; margin: 14px 14px 0; font-size: .8rem; }
pre { margin: 0; white-space: pre; overflow: auto; padding: 14px; font-size: .81rem; line-height: 1.6; }
.hero-panel pre { font-size: .74rem; padding-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-key { color: #c3b7ff; }
.code-value { color: #a6ebd5; }
.code-literal { color: #ffcb92; }
.chapter { margin-top: 31px; scroll-margin-top: calc(var(--header) + 21px); }
.chapter + .chapter { border-top: 1px solid var(--line); padding-top: 26px; }
.chapter h2 { margin-bottom: 13px; }
.chapter h3 { scroll-margin-top: calc(var(--header) + 18px); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.service-card {
  color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 15px;
  min-height: 172px; display: flex; flex-direction: column; align-items: start; gap: .45rem; background: #fff;
  box-shadow: 0 2px 5px #20234b06; transition: border-color .16s, background .16s, box-shadow .16s;
}
.service-card:hover { border-color: #b6acef; background: #fdfcff; text-decoration: none; box-shadow: 0 6px 16px #342a8f0c; }
.card-icon { padding: .42rem; border-radius: 8px; display: inline-flex; }
.card-icon.ais { color: #4533b6; background: #efebff; }
.card-icon.identity { color: #1a5976; background: #e4f5fd; }
.card-icon.organizations { color: #125d4c; background: #e3f7ee; }
.service-card strong { font-size: .99rem; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.service-card > span:not(.card-icon) { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.service-card small { padding-top: .5rem; margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--accent); font-size: .76rem; font-weight: 800; }
.service-card small svg { width: .95rem; height: .95rem; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.code-box { margin: .85rem 0; }
.code-bar { justify-content: space-between; }
.code-bar > span { display: flex; align-items: center; gap: .45rem; }
.copy {
  flex: none; display: flex; align-items: center; gap: 5px; padding: 3px 4px; color: #e7e2ff;
  background: transparent; border: 0; border-radius: 4px; font-size: .72rem; min-height: 28px;
}
.copy:hover { background: #3c3e59; }
.copy:focus-visible { outline-color: #c3b7ff; }
.intro { padding: 11px 0 22px; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(2.3rem, 4vw, 3.55rem); }
.intro p { font-size: 1.08rem; max-width: 69ch; margin: 14px 0; }
.base-url { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; font-weight: 750; }
.base-url code { color: var(--accent); background: var(--wash); padding: .32rem .65rem; border-radius: 6px; }
.steps { padding-inline-start: 1.35rem; }
.steps li { padding-left: .3rem; margin: .75rem 0; color: var(--muted); }
.steps li::marker, .steps strong { color: var(--ink); font-weight: 800; }
.note { border-left: 3px solid #8b7ae6; padding: .75rem 1rem; background: #f5f3ff; border-radius: 0 8px 8px 0; color: #433b63; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; margin: .85rem 0; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .875rem; }
th, td { padding: .66rem .8rem; vertical-align: top; }
thead { background: #f7f7fb; }
th { font-weight: 800; }
tbody tr { border-top: 1px solid var(--line); }
td { color: var(--muted); }
td code { color: var(--ink); }
.route { display: flex; align-items: center; gap: .7rem; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.route code { font-size: .86rem; }
.endpoint, .resource { border: 1px solid var(--line); border-radius: 9px; margin: .55rem 0; scroll-margin-top: calc(var(--header) + 18px); }
.endpoint[open], .resource[open] { border-color: #bab0f0; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.endpoint summary, .resource summary {
  display: flex; gap: .72rem; align-items: center; padding: .67rem .75rem; min-height: 44px; border-radius: 8px;
}
.endpoint summary:hover, .resource summary:hover, details[open] > summary { background: #f7f6ff; }
.endpoint summary > svg, .resource summary > svg { margin-left: auto; width: .95rem; height: .95rem; color: var(--muted); }
details[open] > summary > svg { transform: rotate(90deg); }
.operation { display: grid; gap: .12rem; min-width: 0; }
.operation code, .resource summary code { color: var(--ink); font-size: .88rem; overflow-wrap: anywhere; }
.operation > span, .resource summary span { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.method { border-radius: 5px; text-align: center; padding: .14rem .35rem; font: 750 .72rem/1.4 var(--mono); min-width: 49px; flex: none; }
.get { color: #075947; background: #d7f4e8; }
.post { color: #3925a2; background: #ece7ff; }
.patch, .put { color: #85450b; background: #ffead0; }
.delete { color: #9e2848; background: #fce3ea; }
.endpoint-body { padding: .86rem .9rem; border-top: 1px solid var(--line); }
.endpoint-body > p { font-size: .94rem; }
.endpoint-head { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .79rem; font-weight: 750; }
.auth-label { display: inline-flex; align-items: center; gap: .28rem; }
.auth-label svg { height: .95rem; width: .95rem; }
.permalink { margin-left: auto; }
.status-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.status-list code { background: var(--soft); padding: .26rem .47rem; border-radius: 5px; font-size: .74rem; }
.resource-group { margin-top: 15px; }
.resource .table-wrap { margin: .6rem; }
.resource-filter { color: var(--muted); display: flex; align-items: center; gap: .45rem; padding: 0 .7rem; border-radius: 8px; border: 1px solid var(--line); background: #f7f8fc; width: min(100%, 370px); }
.resource-filter input { min-width: 0; width: 100%; background: transparent; border: 0; padding: .53rem 0; color: var(--ink); }
footer { border-top: 1px solid var(--line); margin-top: 36px; padding: 18px 0 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 700; }
dialog {
  border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 18px 70px #18183148; padding: 0;
  width: min(650px, calc(100vw - 2rem)); max-height: min(78dvh, 610px); margin: max(6vh, 18px) auto auto;
  color: var(--ink); background: #fff;
}
dialog::backdrop { background: #18183167; }
.search-head { position: sticky; top: 0; background: #fff; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.search-head > svg { color: var(--accent); }
.search-head input { width: 100%; min-width: 0; border: 0; padding: .5rem; color: var(--ink); }
#search-status { margin: .75rem 1rem; font-size: .86rem; }
#search-status:empty { display: none; }
#search-results { list-style: none; padding: 0 .65rem; }
#search-results a { display: grid; gap: .1rem; padding: .65rem .8rem; color: var(--ink); border-radius: 8px; }
#search-results a:hover, #search-results a:focus-visible { background: var(--wash); text-decoration: none; }
#search-results strong { font-size: .92rem; }
#search-results span { font-size: .79rem; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 1250px) {
  .docs-layout { --nav-width: 204px; --toc-width: 160px; gap: 25px; padding-inline: 25px; }
  .header-inner { padding-inline: 25px; }
  .toc { padding-left: 0; }
}
@media (max-width: 1050px) {
  .docs-layout { grid-template-columns: 195px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 735px) {
  :root { --header: 59px; }
  .header-inner { padding-inline: 14px; gap: 10px; }
  .brand img { width: 29px; height: 29px; border-radius: 7px; }
  .brand { gap: 6px; font-size: .89rem; }
  .brand small { font-size: .65rem; }
  .menu-toggle { display: grid; }
  .search-trigger { width: 40px; justify-content: center; margin-left: auto; margin-right: 0; padding: 0; }
  .search-trigger span, .search-trigger kbd, .header-download span { display: none; }
  .header-download { display: grid; width: 34px; height: 40px; place-items: center; }
  .docs-layout { display: block; padding: 0 16px; }
  .sidebar { display: none; position: fixed; inset: var(--header) auto auto 0; width: min(315px, 90vw); height: calc(100dvh - var(--header)); background: #fff; z-index: 4; padding: 18px 16px; box-shadow: 8px 0 25px #191b3860; }
  .sidebar.is-open { display: block; }
  main { padding-top: 17px; }
  .breadcrumb { margin-bottom: 13px; }
}
@media (max-width: 555px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 11cqw, 3.55rem); }
  .hero p { max-width: none; }
  .service-grid, .examples { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .resource summary { flex-wrap: wrap; gap: .45rem; }
  .resource summary span { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
