:root {
  color-scheme: light;
  --docs-header-height: 113px;
  --docs-canvas: #f8f8fc;
  --docs-surface: #ffffff;
  --docs-surface-raised: #ffffff;
  --docs-surface-muted: #f3f1f8;
  --docs-surface-tint: #f7f3ff;
  --docs-text: #181525;
  --docs-text-soft: #5e596e;
  --docs-text-faint: #777286;
  --docs-border: #e4e0eb;
  --docs-border-strong: #d3ccdf;
  --docs-purple: #6633cc;
  --docs-purple-hover: #5426b3;
  --docs-purple-soft: #eee7fc;
  --docs-pink: #e5008e;
  --docs-pink-hover: #ff1faa;
  --docs-pink-active: #c50079;
  --docs-pink-soft: #fff0f8;
  --docs-control-foreground: #ffffff;
  --docs-code: #10111d;
  --docs-code-border: #292b3c;
  --docs-code-text: #f4f2ff;
  --docs-focus: #8a5de1;
  --docs-success: #087f5b;
  --docs-success-soft: #e8f8f2;
  --docs-warning: #9a5a00;
  --docs-warning-soft: #fff6dd;
  --docs-danger: #b4233d;
  --docs-danger-soft: #fff0f2;
  --docs-info: #2856a3;
  --docs-info-soft: #edf4ff;
  --docs-shadow-sm: 0 1px 2px rgba(31, 24, 50, 0.06), 0 3px 10px rgba(31, 24, 50, 0.04);
  --docs-shadow-md: 0 18px 45px rgba(30, 22, 53, 0.13), 0 4px 14px rgba(30, 22, 53, 0.08);
  --docs-shadow-focus: 0 0 0 3px rgba(102, 51, 204, 0.22);
  --docs-radius-sm: 8px;
  --docs-radius-md: 12px;
  --docs-radius-lg: 18px;
  --docs-radius-xl: 26px;
  --docs-transition: 160ms ease;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --docs-canvas: #0e0f1c;
  --docs-surface: #151625;
  --docs-surface-raised: #1a1b2d;
  --docs-surface-muted: #202135;
  --docs-surface-tint: #201a34;
  --docs-text: #f7f5fc;
  --docs-text-soft: #c0bbce;
  --docs-text-faint: #9d97ad;
  --docs-border: #303147;
  --docs-border-strong: #41435d;
  --docs-purple: #a98ae9;
  --docs-purple-hover: #bea5f0;
  --docs-purple-soft: #2a2044;
  --docs-pink: #e829a3;
  --docs-pink-hover: #f447b6;
  --docs-pink-active: #cb1e8c;
  --docs-pink-soft: #3d1831;
  --docs-control-foreground: #ffffff;
  --docs-code: #090a12;
  --docs-code-border: #313247;
  --docs-code-text: #f8f6ff;
  --docs-focus: #c2a8f5;
  --docs-success: #6fd5b1;
  --docs-success-soft: #15382e;
  --docs-warning: #f4bf5f;
  --docs-warning-soft: #3b3018;
  --docs-danger: #ff879b;
  --docs-danger-soft: #421e28;
  --docs-info: #8eb7ff;
  --docs-info-soft: #1c2d4c;
  --docs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24), 0 4px 12px rgba(0, 0, 0, 0.14);
  --docs-shadow-md: 0 20px 50px rgba(0, 0, 0, 0.42), 0 5px 16px rgba(0, 0, 0, 0.24);
  --docs-shadow-focus: 0 0 0 3px rgba(194, 168, 245, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --docs-canvas: #0e0f1c;
    --docs-surface: #151625;
    --docs-surface-raised: #1a1b2d;
    --docs-surface-muted: #202135;
    --docs-surface-tint: #201a34;
    --docs-text: #f7f5fc;
    --docs-text-soft: #c0bbce;
    --docs-text-faint: #9d97ad;
    --docs-border: #303147;
    --docs-border-strong: #41435d;
    --docs-purple: #a98ae9;
    --docs-purple-hover: #bea5f0;
    --docs-purple-soft: #2a2044;
    --docs-pink: #e829a3;
    --docs-pink-hover: #f447b6;
    --docs-pink-active: #cb1e8c;
    --docs-pink-soft: #3d1831;
    --docs-control-foreground: #ffffff;
    --docs-code: #090a12;
    --docs-code-border: #313247;
    --docs-code-text: #f8f6ff;
    --docs-focus: #c2a8f5;
    --docs-success: #6fd5b1;
    --docs-success-soft: #15382e;
    --docs-warning: #f4bf5f;
    --docs-warning-soft: #3b3018;
    --docs-danger: #ff879b;
    --docs-danger-soft: #421e28;
    --docs-info: #8eb7ff;
    --docs-info-soft: #1c2d4c;
    --docs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24), 0 4px 12px rgba(0, 0, 0, 0.14);
    --docs-shadow-md: 0 20px 50px rgba(0, 0, 0, 0.42), 0 5px 16px rgba(0, 0, 0, 0.24);
    --docs-shadow-focus: 0 0 0 3px rgba(194, 168, 245, 0.3);
  }
}

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--docs-canvas);
  color: var(--docs-text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.search-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--docs-purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--docs-purple-hover);
}

:focus-visible {
  outline: 2px solid var(--docs-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--docs-purple-soft);
  color: var(--docs-text);
}

[hidden] {
  display: none !important;
}

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

.mobile-only {
  display: none !important;
}

.muted {
  color: var(--docs-text-soft);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 12px;
  padding: 9px 14px;
  border-radius: var(--docs-radius-sm);
  background: var(--docs-text);
  color: var(--docs-surface);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--docs-transition);
}

.skip-link:focus {
  color: var(--docs-surface);
  transform: translateY(0);
}

/* Global two-tier documentation header */
.docs-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--docs-border);
  background: color-mix(in srgb, var(--docs-surface) 94%, transparent);
  box-shadow: 0 1px 0 rgba(28, 22, 43, 0.02);
  backdrop-filter: blur(18px) saturate(150%);
}

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  height: 64px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--docs-text);
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--docs-text);
}

.brand > img:first-child {
  width: 30px;
  height: 30px;
}

.brand-wordmark {
  width: 94px;
  height: 26px;
}

.brand-divider {
  width: 1px;
  height: 25px;
  margin-left: 2px;
  background: var(--docs-border-strong);
}

.utility-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.utility-link {
  padding: 7px 6px;
  border-radius: 7px;
  color: var(--docs-text-soft);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

.utility-link:hover {
  color: var(--docs-text);
}

.search-launcher {
  display: inline-grid;
  grid-template-columns: auto minmax(100px, 240px) auto;
  align-items: center;
  gap: 8px;
  width: min(29vw, 340px);
  height: 38px;
  margin-right: 4px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--docs-border-strong);
  border-radius: 10px;
  background: var(--docs-surface-muted);
  color: var(--docs-text-soft);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--docs-surface) 75%, transparent);
  text-align: left;
  transition: border-color var(--docs-transition), background var(--docs-transition), box-shadow var(--docs-transition);
}

.search-launcher:hover {
  border-color: color-mix(in srgb, var(--docs-purple) 45%, var(--docs-border));
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow-sm);
}

.search-launcher > span:first-child {
  color: var(--docs-purple);
  font-size: 20px;
  line-height: 1;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 23px;
  padding: 0 6px;
  border: 1px solid var(--docs-border-strong);
  border-radius: 6px;
  background: var(--docs-surface);
  box-shadow: 0 1px 1px rgba(20, 17, 32, 0.08);
  color: var(--docs-text-faint);
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--docs-transition), border-color var(--docs-transition), color var(--docs-transition), box-shadow var(--docs-transition), transform var(--docs-transition);
}

.button {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 14px;
}

.button--primary,
.button--primary:link,
.button--primary:visited {
  border-color: var(--docs-pink);
  background: var(--docs-pink);
  color: var(--docs-control-foreground);
  box-shadow: 0 4px 12px rgba(229, 0, 142, 0.17);
}

.button--primary:hover,
.button--primary:focus-visible {
  border-color: var(--docs-pink-hover);
  background: var(--docs-pink-hover);
  color: var(--docs-control-foreground);
  box-shadow: 0 6px 16px rgba(229, 0, 142, 0.23);
}

.button--primary:active,
.button--primary[aria-pressed="true"] {
  border-color: var(--docs-pink-active);
  background: var(--docs-pink-active);
  color: var(--docs-control-foreground);
  transform: translateY(1px);
}

.button--primary:disabled,
.button--primary[aria-disabled="true"],
.button--primary.is-loading {
  border-color: var(--docs-pink);
  background: var(--docs-pink);
  color: var(--docs-control-foreground);
}

.button--secondary {
  border-color: var(--docs-border-strong);
  background: var(--docs-surface);
  color: var(--docs-text);
  box-shadow: var(--docs-shadow-sm);
}

.button--secondary:hover {
  border-color: color-mix(in srgb, var(--docs-purple) 55%, var(--docs-border));
  background: var(--docs-purple-soft);
  color: var(--docs-purple-hover);
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-color: var(--docs-border);
  background: var(--docs-surface);
  color: var(--docs-text-soft);
  font-size: 18px;
}

.icon-button:hover {
  border-color: var(--docs-border-strong);
  background: var(--docs-surface-muted);
  color: var(--docs-text);
}

.product-nav {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  height: 48px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 25px;
}

.product-nav > a,
.product-nav [data-menu-trigger] {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--docs-text-soft);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--docs-transition), color var(--docs-transition);
}

.product-nav > a:hover,
.product-nav [data-menu-trigger]:hover,
.nav-menu.is-open [data-menu-trigger] {
  border-bottom-color: var(--docs-purple);
  color: var(--docs-text);
}

.nav-menu {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
}

.product-nav .nav-menu:nth-of-type(2) {
  margin-left: auto;
}

.menu-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: -18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: min(610px, calc(100vw - 48px));
  max-height: min(640px, calc(100vh - var(--docs-header-height) - 28px));
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-surface-raised);
  box-shadow: var(--docs-shadow-md);
  transform-origin: top left;
  animation: menu-in 140ms ease-out;
}

.menu-panel--products {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  width: min(940px, calc(100vw - 48px));
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
}

.menu-group {
  min-width: 0;
  padding: 6px;
}

.menu-label {
  margin: 0 8px 7px;
  color: var(--docs-text-faint);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-group a {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--docs-text);
  text-decoration: none;
}

.menu-group a:hover,
.menu-group a:focus-visible {
  background: var(--docs-purple-soft);
  color: var(--docs-purple-hover);
}

.menu-group a span {
  font-size: 14px;
  font-weight: 680;
}

.menu-group a small {
  overflow: hidden;
  color: var(--docs-text-soft);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.external {
  margin-left: 4px;
  font-size: 11px;
}

/* Three-column reading layout */
.docs-layout {
  display: grid;
  grid-template-columns: minmax(230px, 276px) minmax(0, 1fr) minmax(190px, 236px);
  width: 100%;
  max-width: 1600px;
  min-height: calc(100vh - var(--docs-header-height));
  margin: 0 auto;
}

.docs-sidebar {
  position: sticky;
  top: var(--docs-header-height);
  align-self: start;
  height: calc(100vh - var(--docs-header-height));
  padding: 28px 20px 70px 24px;
  overflow: auto;
  border-right: 1px solid var(--docs-border);
  background: var(--docs-canvas);
  scrollbar-color: var(--docs-border-strong) transparent;
  scrollbar-width: thin;
}

.sidebar-section + .sidebar-section {
  margin-top: 21px;
}

.sidebar-section > button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 5px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--docs-text);
  font-size: 12px;
  font-weight: 770;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
}

.sidebar-section > button::after {
  content: "⌄";
  color: var(--docs-text-faint);
  font-size: 14px;
  transform: rotate(0);
  transition: transform var(--docs-transition);
}

.sidebar-section > button[aria-expanded="false"]::after {
  transform: rotate(-90deg);
}

.sidebar-section > button:hover {
  background: var(--docs-surface-muted);
}

.sidebar-section [data-nav-content] {
  display: grid;
  gap: 2px;
}

.sidebar-section [data-nav-content] a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--docs-text-soft);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: background var(--docs-transition), border-color var(--docs-transition), color var(--docs-transition), box-shadow var(--docs-transition);
}

.sidebar-section [data-nav-content] a:hover {
  background: var(--docs-surface-muted);
  color: var(--docs-text);
}

.sidebar-section [data-nav-content] a.active,
.sidebar-section [data-nav-content] a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--docs-purple) 26%, var(--docs-border));
  background: var(--docs-purple-soft);
  box-shadow: inset 3px 0 0 var(--docs-purple);
  color: var(--docs-purple-hover);
  font-weight: 680;
}

.sidebar-section a small {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--docs-pink-soft);
  color: var(--docs-pink);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-content {
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 0 auto;
  padding: 57px clamp(32px, 4vw, 66px) 80px;
}

.landing-page .docs-content {
  max-width: 1120px;
}

.docs-content:focus {
  outline: 0;
}

.docs-toc {
  position: sticky;
  top: calc(var(--docs-header-height) + 30px);
  align-self: start;
  max-height: calc(100vh - var(--docs-header-height) - 52px);
  margin: 34px 24px 0 0;
  padding: 3px 0 14px 22px;
  overflow: auto;
  border-left: 1px solid var(--docs-border);
  color: var(--docs-text-soft);
}

.docs-toc > p {
  margin: 0 0 10px;
  color: var(--docs-text);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.025em;
}

.docs-toc nav {
  display: grid;
  gap: 2px;
}

.docs-toc nav a {
  position: relative;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--docs-text-soft);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.docs-toc nav a:hover {
  background: var(--docs-surface-muted);
  color: var(--docs-text);
}

.docs-toc nav a.active,
.docs-toc nav a[aria-current="location"] {
  background: var(--docs-purple-soft);
  color: var(--docs-purple-hover);
  font-weight: 670;
}

.docs-toc nav a.active::before,
.docs-toc nav a[aria-current="location"]::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -23px;
  width: 2px;
  border-radius: 2px;
  background: var(--docs-purple);
  content: "";
}

.toc-help {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--docs-border);
  font-size: 11.5px;
}

.toc-help div {
  display: flex;
  gap: 6px;
}

.toc-help button {
  padding: 4px 9px;
  border: 1px solid var(--docs-border-strong);
  border-radius: 7px;
  background: var(--docs-surface);
  color: var(--docs-text-soft);
  font-size: 11px;
}

.toc-help button:hover,
.toc-help button[aria-pressed="true"] {
  border-color: var(--docs-purple);
  background: var(--docs-purple-soft);
  color: var(--docs-purple-hover);
}

/* Content typography and page composition */
.page-heading {
  position: relative;
  margin-bottom: 52px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--docs-border);
}

.eyebrow,
.card-eyebrow {
  margin: 0 0 10px;
  color: var(--docs-purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px 16px;
}

h1,
h2,
h3,
h4 {
  color: var(--docs-text);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 3.45rem);
  font-weight: 745;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.032em;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--docs-text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.68;
  text-wrap: pretty;
}

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

.badge-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.docs-badge,
.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-surface-muted);
  color: var(--docs-text-soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.docs-badge--success {
  border-color: color-mix(in srgb, var(--docs-success) 28%, transparent);
  background: var(--docs-success-soft);
  color: var(--docs-success);
}

.docs-badge--warning {
  border-color: color-mix(in srgb, var(--docs-warning) 30%, transparent);
  background: var(--docs-warning-soft);
  color: var(--docs-warning);
}

.docs-badge--danger {
  border-color: color-mix(in srgb, var(--docs-danger) 30%, transparent);
  background: var(--docs-danger-soft);
  color: var(--docs-danger);
}

.content-section {
  scroll-margin-top: calc(var(--docs-header-height) + 26px);
}

.content-section + .content-section {
  margin-top: 66px;
  padding-top: 4px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.heading-link {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: transparent;
  font-size: 18px;
  transition: background var(--docs-transition), color var(--docs-transition);
}

.section-heading:hover .heading-link,
.heading-link:focus-visible {
  background: var(--docs-surface-muted);
  color: var(--docs-purple);
}

.content-section > p,
.content-section > ul,
.content-section > ol {
  max-width: 780px;
}

.content-section p,
.content-section li {
  color: var(--docs-text-soft);
}

.content-section strong {
  color: var(--docs-text);
}

.content-section code:not(pre code),
.operation-path code {
  padding: 2px 5px;
  border: 1px solid var(--docs-border);
  border-radius: 5px;
  background: var(--docs-surface-muted);
  color: var(--docs-purple-hover);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

/* Landing page and selectable documentation cards */
.landing-page .page-heading {
  max-width: 860px;
  margin-bottom: 32px;
  padding-bottom: 0;
  border-bottom: 0;
}

.landing-page h1 {
  font-size: clamp(2.8rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.home-hero-art {
  position: relative;
  height: 230px;
  margin: 12px 0 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--docs-purple) 22%, var(--docs-border));
  border-radius: var(--docs-radius-xl);
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--docs-pink) 28%, transparent), transparent 34%),
    radial-gradient(circle at 76% 20%, color-mix(in srgb, var(--docs-purple) 36%, transparent), transparent 34%),
    linear-gradient(135deg, var(--docs-surface-tint), var(--docs-surface-muted));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--docs-surface) 80%, transparent);
}

.home-hero-art::before,
.home-hero-art::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--docs-purple) 20%, transparent);
  border-radius: 50%;
  content: "";
}

.home-hero-art::before {
  width: 330px;
  height: 330px;
  top: -185px;
  right: -40px;
}

.home-hero-art::after {
  width: 250px;
  height: 250px;
  bottom: -175px;
  left: 7%;
}

.home-hero-art span {
  position: absolute;
  width: 130px;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--docs-purple) 28%, var(--docs-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--docs-surface) 88%, transparent);
  box-shadow: var(--docs-shadow-md);
  transform: rotate(-5deg);
}

.home-hero-art span::before,
.home-hero-art span::after {
  position: absolute;
  left: 15px;
  height: 7px;
  border-radius: 8px;
  background: var(--docs-purple-soft);
  content: "";
}

.home-hero-art span::before {
  top: 20px;
  width: 58%;
}

.home-hero-art span::after {
  top: 38px;
  width: 35%;
  background: var(--docs-pink-soft);
}

.home-hero-art span:nth-child(1) { top: 38px; left: 7%; }
.home-hero-art span:nth-child(2) { top: 104px; left: 29%; transform: rotate(4deg); }
.home-hero-art span:nth-child(3) { top: 35px; right: 26%; transform: rotate(6deg); }
.home-hero-art span:nth-child(4) { right: 6%; bottom: 30px; transform: rotate(-7deg); }

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 56px;
  margin-bottom: 68px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--docs-border-strong);
  border-radius: 14px;
  background: var(--docs-surface);
  color: var(--docs-text-soft);
  box-shadow: var(--docs-shadow-sm);
  text-align: left;
  transition: border-color var(--docs-transition), box-shadow var(--docs-transition), transform var(--docs-transition);
}

.home-search:hover {
  border-color: var(--docs-purple);
  box-shadow: var(--docs-shadow-focus), var(--docs-shadow-sm);
  transform: translateY(-1px);
}

.card-grid,
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-card {
  position: relative;
  display: flex;
  min-height: 186px;
  flex-direction: column;
  padding: 21px 22px;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow-sm);
  color: var(--docs-text);
  text-decoration: none;
  transition: border-color var(--docs-transition), box-shadow var(--docs-transition), transform var(--docs-transition), background var(--docs-transition);
}

.docs-card:hover,
.docs-card:focus-visible {
  border-color: var(--docs-purple);
  background: var(--docs-surface-tint);
  box-shadow: var(--docs-shadow-focus), 0 14px 30px rgba(46, 31, 86, 0.09);
  color: var(--docs-text);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--docs-purple) 20%, var(--docs-border));
  border-radius: 10px;
  background: var(--docs-purple-soft);
  color: var(--docs-purple);
  font-size: 18px;
}

.docs-card h3 {
  margin: 0 28px 7px 0;
}

.docs-card p {
  margin: 0 0 16px;
  color: var(--docs-text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

.card-meta {
  margin-top: auto;
  color: var(--docs-text-faint);
  font-size: 11.5px;
  font-weight: 620;
}

.card-arrow {
  position: absolute;
  top: 20px;
  right: 19px;
  color: var(--docs-text-faint);
  font-size: 19px;
  transition: color var(--docs-transition), transform var(--docs-transition);
}

.docs-card:hover .card-arrow {
  color: var(--docs-purple);
  transform: translateX(3px);
}

.section-link {
  margin-top: 18px;
  font-weight: 660;
}

/* Product, guide, and platform primitives */
.callout {
  position: relative;
  margin: 22px 0;
  padding: 16px 18px 16px 20px;
  border: 1px solid color-mix(in srgb, var(--docs-info) 25%, var(--docs-border));
  border-left: 3px solid var(--docs-info);
  border-radius: var(--docs-radius-sm);
  background: var(--docs-info-soft);
}

.callout strong {
  color: var(--docs-info);
}

.callout p {
  margin: 4px 0 0;
  color: var(--docs-text-soft);
}

.callout--warning {
  border-color: color-mix(in srgb, var(--docs-warning) 27%, var(--docs-border));
  border-left-color: var(--docs-warning);
  background: var(--docs-warning-soft);
}

.callout--warning strong {
  color: var(--docs-warning);
}

.callout--danger {
  border-color: color-mix(in srgb, var(--docs-danger) 27%, var(--docs-border));
  border-left-color: var(--docs-danger);
  background: var(--docs-danger-soft);
}

.callout--danger strong {
  color: var(--docs-danger);
}

.callout--success {
  border-color: color-mix(in srgb, var(--docs-success) 27%, var(--docs-border));
  border-left-color: var(--docs-success);
  background: var(--docs-success-soft);
}

.callout--success strong {
  color: var(--docs-success);
}

.guide-steps,
.numbered-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.guide-steps li,
.numbered-list li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 28px;
  counter-increment: docs-step;
}

.guide-steps li:not(:last-child)::after,
.numbered-list li:not(:last-child)::after {
  position: absolute;
  top: 38px;
  bottom: 2px;
  left: 18px;
  width: 1px;
  background: var(--docs-border);
  content: "";
}

.guide-steps li > span,
.numbered-list li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--docs-purple) 35%, var(--docs-border));
  border-radius: 50%;
  background: var(--docs-purple-soft);
  color: var(--docs-purple-hover);
  font-size: 13px;
  font-weight: 760;
}

.numbered-list li::before {
  content: counter(docs-step);
}

.guide-steps h3 {
  margin: 2px 0 4px;
}

.guide-steps p {
  margin: 0;
}

.numbered-list li {
  align-items: center;
}

.check-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.check-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--docs-success-soft);
  color: var(--docs-success);
  font-size: 11px;
  font-weight: 800;
}

.definition-list,
.metadata-grid {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
}

.definition-list > div,
.metadata-grid > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.33fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
}

.definition-list > div + div,
.metadata-grid > div + div {
  border-top: 1px solid var(--docs-border);
}

.definition-list dt,
.metadata-grid dt {
  color: var(--docs-text);
  font-size: 13px;
  font-weight: 700;
}

.definition-list dd,
.metadata-grid dd {
  margin: 0;
  color: var(--docs-text-soft);
  font-size: 13px;
}

.metadata-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 28px;
}

.metadata-grid > div {
  display: block;
  padding: 14px 16px;
  border: 0;
}

.metadata-grid > div:nth-child(n + 3) {
  border-top: 1px solid var(--docs-border);
}

.metadata-grid > div:nth-child(even) {
  border-left: 1px solid var(--docs-border);
}

.metadata-grid dd {
  margin-top: 3px;
  text-transform: capitalize;
}

.architecture-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface-muted);
}

.architecture-flow span {
  flex: 0 0 auto;
  padding: 11px 14px;
  border: 1px solid var(--docs-border-strong);
  border-radius: 9px;
  background: var(--docs-surface);
  color: var(--docs-text);
  box-shadow: var(--docs-shadow-sm);
  font-size: 12px;
  font-weight: 670;
}

.architecture-flow i {
  color: var(--docs-purple);
  font-style: normal;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  margin: 20px 0;
  overflow: auto;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
}

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

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--docs-border);
  color: var(--docs-text-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--docs-surface-muted);
  color: var(--docs-text);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* Public API reference */
.endpoint-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
}

.endpoint-list > a {
  display: grid;
  grid-template-columns: 58px minmax(155px, 0.75fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 12px 15px;
  color: var(--docs-text);
  text-decoration: none;
  transition: background var(--docs-transition), box-shadow var(--docs-transition);
}

.endpoint-list > a + a {
  border-top: 1px solid var(--docs-border);
}

.endpoint-list > a:hover,
.endpoint-list > a:focus-visible {
  background: var(--docs-surface-tint);
  box-shadow: inset 3px 0 0 var(--docs-purple);
}

.endpoint-list code {
  overflow: hidden;
  color: var(--docs-text-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-list > a > span:nth-last-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.endpoint-list strong,
.endpoint-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-list small {
  color: var(--docs-text-soft);
  font-size: 12px;
}

.method {
  border-radius: 5px;
}

.method--get {
  border-color: color-mix(in srgb, #16835f 28%, transparent);
  background: color-mix(in srgb, #16835f 13%, var(--docs-surface));
  color: var(--docs-success);
}

.method--post {
  border-color: color-mix(in srgb, #7655d6 28%, transparent);
  background: color-mix(in srgb, #7655d6 13%, var(--docs-surface));
  color: var(--docs-purple-hover);
}

.method--put,
.method--patch {
  border-color: color-mix(in srgb, #b16c00 28%, transparent);
  background: color-mix(in srgb, #b16c00 13%, var(--docs-surface));
  color: var(--docs-warning);
}

.method--delete {
  border-color: color-mix(in srgb, #c7334f 28%, transparent);
  background: color-mix(in srgb, #c7334f 13%, var(--docs-surface));
  color: var(--docs-danger);
}

.operation-path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -25px 0 22px;
  padding: 13px 15px;
  overflow: auto;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow-sm);
}

.operation-path code {
  flex: 1 0 auto;
  border: 0;
  background: transparent;
  color: var(--docs-text);
  font-size: 13px;
}

.operation-path button,
.code-toolbar button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--docs-code-border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--docs-code-text) 7%, var(--docs-code));
  color: var(--docs-code-text);
  font-size: 11px;
  font-weight: 680;
}

.operation-path button {
  border-color: var(--docs-border-strong);
  background: var(--docs-surface-muted);
  color: var(--docs-text-soft);
}

.operation-path button:hover,
.code-toolbar button:hover {
  border-color: var(--docs-purple);
  color: var(--docs-purple);
}

.parameter-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
}

.parameter-list article {
  padding: 16px 18px;
}

.parameter-list article + article {
  border-top: 1px solid var(--docs-border);
}

.parameter-list header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.parameter-list p {
  margin: 8px 0 0;
  font-size: 13px;
}

.parameter-example {
  color: var(--docs-text-faint) !important;
}

.code-example,
.schema-panel {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--docs-code-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-code);
  box-shadow: var(--docs-shadow-sm);
  color: var(--docs-code-text);
}

.code-toolbar,
.schema-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid var(--docs-code-border);
  background: color-mix(in srgb, var(--docs-code-text) 3%, var(--docs-code));
}

.code-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aca8bd;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.code-toolbar label:first-child {
  margin-right: auto;
}

.code-toolbar select {
  min-width: 105px;
  height: 31px;
  padding: 0 27px 0 9px;
  border: 1px solid var(--docs-code-border);
  border-radius: 7px;
  background: #171825;
  color: #f7f5ff;
  font-size: 11px;
  font-weight: 620;
  text-transform: none;
}

.code-example pre,
.schema-panel pre {
  max-height: 560px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  background: var(--docs-code);
  scrollbar-color: #44465f transparent;
}

.code-example pre code,
.schema-panel pre code {
  color: var(--docs-code-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}

.schema-tabs {
  justify-content: space-between;
  color: #f5f3ff;
  font-size: 12px;
}

.schema-tabs span {
  color: #aaa7b8;
  font-size: 10px;
}

.schema-panel details {
  border-bottom: 1px solid var(--docs-code-border);
}

.schema-panel summary {
  padding: 12px 18px;
  color: #cac6d8;
  font-size: 12px;
  font-weight: 650;
}

.response {
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
}

.response + .response {
  margin-top: 10px;
}

.response > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  color: var(--docs-text);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.response > summary::-webkit-details-marker {
  display: none;
}

.response > summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.response > .schema-panel {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--docs-border);
  border-radius: 0;
}

.error-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
}

.error-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
}

.error-row + .error-row {
  border-top: 1px solid var(--docs-border);
}

.error-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-row p {
  margin: 0;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--docs-border-strong);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface-muted);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 5px;
}

.empty-state p {
  margin: 0;
}

.release-list {
  display: grid;
  gap: 22px;
}

.release-list article {
  padding: 22px 24px;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-md);
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow-sm);
}

.release-list time {
  color: var(--docs-text-faint);
  font-size: 11px;
  font-weight: 690;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.release-list h3 {
  margin: 7px 0;
}

/* Search command surface */
.search-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  margin: 9vh auto auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--docs-radius-lg);
  background: transparent;
  color: var(--docs-text);
}

.search-dialog::backdrop {
  background: rgba(12, 10, 20, 0.58);
  backdrop-filter: blur(5px);
}

.search-shell {
  overflow: hidden;
  border: 1px solid var(--docs-border-strong);
  border-radius: var(--docs-radius-lg);
  background: var(--docs-surface-raised);
  box-shadow: 0 28px 90px rgba(12, 8, 25, 0.34);
  animation: search-in 160ms ease-out;
}

@keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
}

.search-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 8px 12px 8px 18px;
  border-bottom: 1px solid var(--docs-border);
}

.search-bar > span {
  color: var(--docs-purple);
  font-size: 24px;
}

.search-bar input {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--docs-text);
  font-size: 17px;
}

.search-bar input::placeholder {
  color: var(--docs-text-faint);
}

.search-bar button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--docs-text-faint);
  font-size: 21px;
}

.search-bar button:hover {
  background: var(--docs-surface-muted);
  color: var(--docs-text);
}

.search-filters {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--docs-border);
  background: var(--docs-surface-muted);
}

.search-filters select {
  min-width: 145px;
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: var(--docs-surface);
  color: var(--docs-text-soft);
  font-size: 11.5px;
  font-weight: 620;
}

.search-status {
  min-height: 39px;
  padding: 10px 16px 7px;
  color: var(--docs-text-faint);
  font-size: 11.5px;
}

.search-results {
  max-height: min(52vh, 520px);
  margin: 0;
  padding: 0 9px 9px;
  overflow: auto;
  list-style: none;
}

.search-results li {
  border-radius: 10px;
}

.search-results li + li {
  margin-top: 2px;
}

.search-results li[aria-selected="true"] {
  background: var(--docs-purple-soft);
  box-shadow: inset 3px 0 0 var(--docs-purple);
}

.search-results a {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  color: var(--docs-text);
  text-decoration: none;
}

.search-result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-heading strong {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results small {
  overflow: hidden;
  color: var(--docs-text-soft);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  color: var(--docs-text-faint);
  font-size: 9.5px;
  font-weight: 710;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.search-shell > footer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 8px 14px;
  border-top: 1px solid var(--docs-border);
  background: var(--docs-surface-muted);
  color: var(--docs-text-faint);
  font-size: 10.5px;
}

.search-shell > footer span:last-child {
  margin-left: auto;
}

.search-shell > footer kbd {
  min-width: 20px;
  height: 19px;
  margin-right: 3px;
  padding: 0 4px;
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 180;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 15px;
  border: 1px solid var(--docs-border-strong);
  border-radius: 10px;
  background: var(--docs-text);
  box-shadow: var(--docs-shadow-md);
  color: var(--docs-surface);
  font-size: 12.5px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-scrim {
  display: none;
}

.docs-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  margin-top: 88px;
  padding-top: 26px;
  border-top: 1px solid var(--docs-border);
  color: var(--docs-text-faint);
  font-size: 11.5px;
}

.docs-footer > div {
  display: grid;
  gap: 2px;
}

.docs-footer strong {
  color: var(--docs-text);
}

.docs-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
}

.docs-footer nav a {
  color: var(--docs-text-soft);
  text-decoration: none;
}

.docs-footer > span {
  grid-column: 1 / -1;
}

@media (max-width: 1280px) {
  .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-panel--products {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    width: min(680px, calc(100vw - 48px));
  }
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: minmax(225px, 260px) minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }

  .docs-content {
    max-width: 1000px;
  }
}

@media (max-width: 980px) {
  .utility-nav,
  .product-nav {
    padding-right: 18px;
    padding-left: 18px;
  }

  .search-launcher {
    width: 220px;
  }

  .search-launcher > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-nav {
    gap: 19px;
  }
}

@media (max-width: 900px) {
  :root {
    --docs-header-height: 113px;
  }

  .mobile-only {
    display: inline-flex !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .utility-nav {
    padding-right: 14px;
    padding-left: 14px;
  }

  .search-launcher {
    grid-template-columns: auto auto;
    width: auto;
    min-width: 80px;
  }

  .search-launcher > span:nth-child(2) {
    display: none;
  }

  .product-nav {
    gap: 21px;
    padding-right: 16px;
    padding-left: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .product-nav .nav-menu:nth-of-type(2) {
    margin-left: 0;
  }

  .product-nav::-webkit-scrollbar {
    display: none;
  }

  .menu-panel,
  .menu-panel--products {
    position: fixed;
    top: calc(var(--docs-header-height) + 7px);
    right: 12px;
    left: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    max-height: calc(100vh - var(--docs-header-height) - 22px);
  }

  .docs-layout {
    display: block;
    min-height: calc(100vh - var(--docs-header-height));
  }

  .docs-sidebar {
    position: fixed;
    z-index: 100;
    top: var(--docs-header-height);
    bottom: 0;
    left: 0;
    width: min(345px, 88vw);
    height: auto;
    padding: 20px 18px 64px;
    border-right: 1px solid var(--docs-border-strong);
    background: var(--docs-surface);
    box-shadow: var(--docs-shadow-md);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .sidebar-mobile-actions {
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px 18px;
    border-bottom: 1px solid var(--docs-border);
  }

  .sidebar-mobile-actions > a:first-child {
    color: var(--docs-text-soft);
    font-weight: 650;
    text-decoration: none;
  }

  .sidebar-mobile-actions .button {
    margin-left: auto;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 90;
    top: var(--docs-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background: rgba(12, 10, 20, 0.52);
    backdrop-filter: blur(2px);
  }

  .docs-content,
  .landing-page .docs-content {
    max-width: 900px;
    padding: 45px clamp(20px, 5vw, 50px) 70px;
  }
}

@media (max-width: 680px) {
  .brand-wordmark,
  .brand-divider {
    display: none;
  }

  .brand {
    gap: 6px;
  }

  .utility-actions {
    gap: 7px;
  }

  .utility-link {
    display: none;
  }

  .search-launcher kbd {
    display: none;
  }

  .search-launcher {
    min-width: 40px;
    width: 40px;
    padding: 0;
    border-radius: 9px;
  }

  .search-launcher > span:first-child {
    margin: auto;
  }

  .menu-panel,
  .menu-panel--products {
    grid-template-columns: 1fr;
  }

  .docs-content,
  .landing-page .docs-content {
    padding: 37px 18px 58px;
  }

  .page-heading {
    margin-bottom: 40px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .landing-page h1 {
    font-size: clamp(2.55rem, 13vw, 3.75rem);
  }

  .lede {
    font-size: 1rem;
  }

  .home-hero-art {
    height: 190px;
  }

  .home-hero-art span {
    width: 110px;
    height: 68px;
  }

  .home-hero-art span:nth-child(2) { left: 25%; }
  .home-hero-art span:nth-child(3) { right: 12%; }
  .home-hero-art span:nth-child(4) { display: none; }

  .card-grid,
  .product-card-grid {
    grid-template-columns: 1fr;
  }

  .docs-card {
    min-height: 160px;
  }

  .definition-list > div,
  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .definition-list > div {
    gap: 4px;
  }

  .metadata-grid > div,
  .metadata-grid > div:nth-child(even) {
    border: 0;
  }

  .metadata-grid > div + div {
    border-top: 1px solid var(--docs-border);
  }

  .endpoint-list > a {
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 82px;
  }

  .endpoint-list > a > code {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .endpoint-list > a > span:nth-last-child(2) {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .endpoint-list > a > span:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .endpoint-list small {
    display: none;
  }

  .code-toolbar {
    flex-wrap: wrap;
  }

  .code-toolbar label:first-child {
    margin-right: 0;
  }

  .code-toolbar button {
    margin-left: auto;
  }

  .code-example pre,
  .schema-panel pre {
    padding: 16px;
  }

  .architecture-flow {
    justify-content: flex-start;
  }

  .error-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-dialog {
    width: calc(100vw - 16px);
    margin-top: 8px;
  }

  .search-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-left: 12px;
  }

  .search-bar > kbd {
    display: none;
  }

  .search-filters {
    overflow-x: auto;
  }

  .search-shell > footer span:nth-child(-n + 2) {
    display: none;
  }

  .search-shell > footer span:last-child {
    margin-left: 0;
  }

  .docs-footer {
    grid-template-columns: 1fr;
  }

  .docs-footer nav {
    justify-content: flex-start;
  }

  .docs-footer > span {
    grid-column: auto;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .docs-header,
  .docs-sidebar,
  .docs-toc,
  .home-search,
  .heading-link,
  .docs-footer,
  .code-toolbar,
  .page-actions {
    display: none !important;
  }

  body,
  .docs-content {
    background: #ffffff;
    color: #111111;
  }

  .docs-layout {
    display: block;
  }

  .docs-content {
    max-width: none;
    padding: 0;
  }

  .content-section {
    break-inside: avoid;
  }
}
