/* cdn.pizza customer documentation — local, dependency-free, light-first */

:root {
  --docs-header-height: 66px;
  --docs-content-width: 1440px;
  --docs-prose: 72ch;
  --docs-sidebar-bg: #fbfbfc;
  --docs-code: #151922;
  --docs-code-line: #2a303d;
  --docs-blue: #2563eb;
  --docs-purple: #7c3aed;
  --docs-green: #15803d;
}

html {
  scroll-padding-top: 112px;
}

.docs-body {
  min-width: 300px;
  background: #fff;
}

.docs-body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 360px;
  background:
    radial-gradient(circle at 48% -40%, rgba(255, 107, 53, 0.1), transparent 46%),
    linear-gradient(180deg, #fffaf7 0, #fff 88%);
  content: '';
  pointer-events: none;
}

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

.skip-link {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.docs-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(228, 231, 237, 0.92);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.docs-header-inner {
  width: min(calc(100% - 40px), var(--docs-content-width));
  min-height: var(--docs-header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.docs-brand img {
  display: block;
  width: 143px;
  height: auto;
}

.docs-brand span {
  padding-left: 11px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.docs-product-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.docs-product-nav a,
.docs-header-actions > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 650;
}

.docs-product-nav a:hover,
.docs-header-actions > a:hover {
  background: var(--bg-soft);
  color: var(--brand-strong);
}

.docs-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-links {
  display: flex;
  gap: 1px;
  margin-right: 4px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-links a {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-links a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.language-links a[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.docs-header-actions .docs-register {
  margin-left: 3px;
  padding-inline: 13px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.2);
}

.docs-header-actions .docs-register:hover {
  background: var(--brand-strong);
  color: #fff;
}

.docs-menu-button,
.docs-sidebar-head button {
  display: none;
}

/* Shell and search */

.docs-layout-shell {
  width: min(calc(100% - 40px), var(--docs-content-width));
  margin-inline: auto;
}

.docs-search-wrap {
  position: relative;
  z-index: 60;
  width: min(690px, 100%);
  margin: 22px auto 12px;
}

.docs-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 5px 8px 5px 15px;
  border: 1px solid #d9dde6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(18, 21, 28, 0.07);
  color: var(--muted);
}

.docs-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12), 0 12px 32px rgba(18, 21, 28, 0.08);
}

.docs-search > span[aria-hidden] {
  font-family: var(--mono);
  font-size: 1.35rem;
  line-height: 1;
  transform: rotate(-16deg);
}

.docs-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.93rem;
}

.docs-search input::placeholder {
  color: #7b8495;
  opacity: 1;
}

kbd {
  min-width: 28px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: center;
}

.docs-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(560px, calc(100vh - 150px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 21, 28, 0.16);
}

.docs-search-results[hidden] {
  display: none;
}

.docs-search-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 7px 7px;
}

.docs-search-results-head strong {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.docs-search-results-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.docs-search-results > p {
  margin: 0;
  padding: 6px 8px 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.docs-search-results ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.docs-search-results li a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  padding: 10px 11px;
  border-radius: 9px;
}

.docs-search-results li a:hover,
.docs-search-results li a:focus,
.docs-search-results li a[aria-selected='true'] {
  outline: 0;
  background: var(--brand-soft);
}

.docs-search-results li strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.docs-search-results li small {
  grid-column: 2;
  grid-row: 1;
  color: var(--brand-strong);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.docs-search-results li p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.docs-layout {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(210px, 248px) minmax(0, 1fr) minmax(170px, 220px);
  align-items: start;
  gap: clamp(28px, 3.2vw, 56px);
  padding: 14px 0 78px;
}

/* Left navigation */

.docs-navigation-wrap,
.docs-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
}

.docs-navigation-wrap {
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.docs-sidebar {
  max-height: inherit;
  overflow-y: auto;
  padding: 4px 24px 32px 1px;
  scrollbar-width: thin;
  scrollbar-color: #c9ced8 transparent;
}

.docs-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-bottom: 15px;
}

.docs-sidebar-head strong {
  font-size: 0.78rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 22px;
}

.docs-nav-group h2 {
  margin: 0 0 6px;
  color: #7a8291;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.docs-nav-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav-group a {
  position: relative;
  display: block;
  margin-left: -10px;
  padding: 5px 10px;
  border-radius: 7px;
  color: #454d5c;
  font-size: 0.79rem;
  line-height: 1.42;
}

.docs-nav-group a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.docs-nav-group a[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 750;
}

.docs-nav-group a[aria-current='page']::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: var(--brand);
  content: '';
}

/* Main article */

.docs-main {
  width: 100%;
  min-width: 0;
  max-width: 860px;
  margin-inline: auto;
}

.docs-breadcrumb {
  margin: 1px 0 26px;
  color: var(--muted);
  font-size: 0.73rem;
}

.docs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-breadcrumb li:not(:last-child)::after {
  margin-left: 7px;
  color: #b0b6c1;
  content: '/';
}

.docs-breadcrumb a:hover {
  color: var(--brand-strong);
}

.doc-article {
  min-width: 0;
}

.doc-title {
  padding-bottom: 31px;
  border-bottom: 1px solid var(--line);
}

.doc-title > p {
  margin: 0 0 9px;
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.doc-title h1 {
  max-width: 19ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  font-weight: 780;
  letter-spacing: -0.044em;
  line-height: 1.02;
  text-wrap: balance;
}

.doc-lead {
  max-width: 62ch;
  margin-top: 18px;
  color: #4b5463;
  font-size: clamp(1.02rem, 1.5vw, 1.17rem);
  line-height: 1.65;
}

.doc-section,
.doc-callout {
  max-width: var(--docs-prose);
  margin-top: 43px;
}

.doc-section h2,
.doc-callout h2 {
  position: relative;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.32rem, 2vw, 1.65rem);
  font-weight: 760;
  letter-spacing: -0.026em;
  line-height: 1.2;
  scroll-margin-top: 104px;
}

.doc-section h3,
.doc-callout h3 {
  position: relative;
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.35;
  scroll-margin-top: 104px;
}

.heading-anchor {
  position: absolute;
  right: calc(100% + 7px);
  top: 0.03em;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.14s ease;
}

h2:hover > .heading-anchor,
h3:hover > .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.doc-section p,
.doc-callout p {
  margin: 0 0 15px;
  color: #3f4754;
  line-height: 1.72;
}

.doc-section ul,
.doc-section ol:not(.doc-steps ol) {
  padding-left: 1.3rem;
  color: #3f4754;
}

.doc-section li + li {
  margin-top: 8px;
}

.doc-section a:not(.heading-anchor),
.doc-callout a:not(.heading-anchor),
.text-link {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-color: rgba(232, 90, 36, 0.35);
  text-underline-offset: 3px;
}

p code,
li code,
td code,
dd code,
.doc-lead code,
.endpoint-heading code,
.reference-actions code,
.query-card > p code {
  padding: 0.12em 0.36em;
  border: 1px solid #e2e5eb;
  border-radius: 5px;
  background: #f6f7f9;
  color: #273142;
  font-family: var(--mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.doc-steps ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.doc-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.doc-steps li > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 800;
}

.doc-steps li p {
  margin: 2px 0 0;
  color: var(--ink-2);
  line-height: 1.55;
}

.doc-callout {
  position: relative;
  padding: 20px 22px 18px;
  border: 1px solid #f2c9b5;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  background: #fff8f4;
}

.doc-callout::before {
  position: absolute;
  top: 19px;
  right: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(255, 107, 53, 0.12);
  content: '';
}

.doc-callout-warning {
  border-color: #f2d197;
  border-left-color: var(--warn);
  background: #fffaf0;
}

.doc-callout-warning::before {
  background: var(--warn);
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.12);
}

.doc-callout h2 {
  padding-right: 28px;
  font-size: 1rem;
}

.doc-callout p:last-child {
  margin-bottom: 0;
}

.code-example {
  max-width: 100%;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--docs-code-line);
  border-radius: 11px;
  background: var(--docs-code);
  box-shadow: 0 10px 24px rgba(18, 21, 28, 0.1);
}

.code-example figcaption {
  padding: 10px 14px;
  border-bottom: 1px solid var(--docs-code-line);
  background: #1b202b;
  color: #d9dee9;
  font-size: 0.77rem;
}

.code-toolbar {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 14px;
  border-bottom: 1px solid var(--docs-code-line);
  color: #8f9aac;
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.code-toolbar button {
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #3a4252;
  border-radius: 6px;
  background: #222936;
  color: #dce2ec;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
}

.code-toolbar button:hover {
  border-color: #596477;
  background: #2a3241;
}

.code-example pre {
  margin: 0;
  overflow-x: auto;
  padding: 17px 19px;
  color: #f3f6fb;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.68;
  tab-size: 2;
}

.code-example code {
  font: inherit;
  white-space: pre;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
}

th,
td {
  min-width: 105px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #414a58;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7f8fa;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

tbody tr:hover td {
  background: #fcfcfd;
}

.permission-table th:not(:first-child),
.permission-table td:not(:first-child) {
  min-width: 82px;
  text-align: center;
}

.permission-table td:first-child {
  min-width: 260px;
}

.access {
  display: inline-flex;
  min-width: 55px;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 750;
}

.access-read {
  background: #edf3ff;
  color: #2858b8;
}

.access-write {
  background: #eaf8ef;
  color: #137333;
}

.access-none {
  background: #f1f2f4;
  color: #737b88;
}

.lifecycle-table td:first-child {
  width: 160px;
}

.doc-details details,
.endpoint-example,
.command-card > details {
  border-top: 1px solid var(--line);
}

details summary {
  padding: 12px 2px;
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

details[open] summary {
  color: var(--brand-strong);
}

/* Generated API and CLI references */

.generated-reference {
  max-width: none;
}

.reference-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 28px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.endpoint-group + .endpoint-group {
  margin-top: 42px;
}

.endpoint-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.76rem !important;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.endpoint-group-title span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-align: center;
}

.endpoint-card {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(18, 21, 28, 0.025);
}

.endpoint-card h3 {
  margin-top: 12px;
}

.endpoint-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.endpoint-heading code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.74rem;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef2ff;
  color: #3730a3;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.method-get,
.method-head,
.method-propfind {
  background: #eaf2ff;
  color: #1d4ed8;
}

.method-post,
.method-put,
.method-mkcol {
  background: #eaf8ef;
  color: #137333;
}

.method-delete {
  background: #fff0f0;
  color: #c02626;
}

.method-options {
  background: #f2edff;
  color: #6d28d9;
}

.endpoint-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 13px 0;
  font-size: 0.73rem;
}

.endpoint-meta div {
  display: flex;
  gap: 6px;
}

.endpoint-meta dt {
  color: var(--muted);
}

.endpoint-meta dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 650;
}

.endpoint-card h4,
.command-card h4 {
  margin: 17px 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.compact-table {
  font-size: 0.72rem;
}

.compact-table th,
.compact-table td {
  min-width: 80px;
  padding: 8px 9px;
}

.field-constraints {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.45;
}

.endpoint-example .code-example,
.command-card details .code-example {
  margin: 2px 0 10px;
}

.command-list,
.query-grid {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.command-card,
.query-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.command-card h3,
.query-card h3 {
  margin-top: 0;
  font-family: var(--mono);
  font-size: 1rem;
}

.command-card > .code-example,
.query-card > .code-example {
  margin-block: 13px;
}

.option-list {
  margin: 0;
  font-size: 0.75rem;
}

.option-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1fr;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.option-list dt,
.option-list dd {
  min-width: 0;
  margin: 0;
}

.option-list dt code {
  overflow-wrap: anywhere;
}

.required {
  color: var(--bad);
}

.query-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.query-card p code {
  display: inline-block;
  margin: 2px 1px;
}

.doc-limit {
  padding: 11px 14px;
  border-left: 3px solid var(--warn);
  background: #fffaf0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.method-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.method-grid p {
  margin: 9px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

/* Right TOC */

.docs-toc {
  overflow-y: auto;
  padding-top: 4px;
}

.docs-toc > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-toc ol {
  margin: 0;
  padding: 0 0 0 13px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.docs-toc li + li {
  margin-top: 4px;
}

.docs-toc a {
  display: block;
  padding: 3px 0;
  color: #6a7281;
  font-size: 0.71rem;
  line-height: 1.45;
}

.docs-toc a:hover,
.docs-toc a[aria-current='true'] {
  color: var(--brand-strong);
}

.docs-toc p {
  color: var(--muted);
  font-size: 0.72rem;
}

.related-topics > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.related-topics > div a {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
}

.related-topics > div a:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.related-topics strong,
.related-topics span {
  display: block;
}

.related-topics strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.related-topics span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  max-width: var(--docs-prose);
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #858d9b;
  font-size: 0.68rem;
}

.doc-page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  max-width: var(--docs-prose);
  margin-top: 34px;
}

.page-nav-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 88px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.page-nav-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-soft);
}

.page-nav-card span {
  color: var(--muted);
  font-size: 0.69rem;
}

.page-nav-card strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.4;
}

.page-nav-next {
  align-items: flex-end;
  text-align: right;
}

/* Footer */

.docs-footer {
  width: min(calc(100% - 40px), var(--docs-content-width));
  min-height: 150px;
  margin-inline: auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.docs-footer .docs-brand img {
  width: 130px;
}

.docs-footer p {
  max-width: 45ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.docs-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 7px 16px;
}

.docs-footer nav a {
  color: var(--muted);
  font-size: 0.74rem;
}

.docs-footer nav a:hover {
  color: var(--brand-strong);
}

.docs-backdrop[hidden] {
  display: none;
}

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

@media (max-width: 1180px) {
  .docs-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

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

  .docs-product-nav a:nth-last-child(-n + 2) {
    display: none;
  }

  .docs-layout {
    grid-template-columns: minmax(205px, 238px) minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 940px) {
  .docs-header-inner {
    width: min(calc(100% - 28px), var(--docs-content-width));
  }

  .docs-layout-shell,
  .docs-footer {
    width: min(calc(100% - 32px), var(--docs-content-width));
  }

  .docs-product-nav {
    display: none;
  }

  .docs-header-inner {
    grid-template-columns: auto 1fr;
  }

  .docs-header-actions {
    justify-self: end;
  }

  .docs-header-actions > a:not(.docs-register) {
    display: none;
  }

  .docs-layout {
    gap: 30px;
  }

  .query-grid,
  .related-topics > div {
    grid-template-columns: 1fr;
  }
}

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

  html {
    scroll-padding-top: 76px;
  }

  .docs-body::before {
    height: 260px;
  }

  .docs-header-inner {
    width: calc(100% - 24px);
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .docs-brand img {
    width: 126px;
  }

  .docs-brand span,
  .docs-header-actions {
    display: none;
  }

  .docs-menu-button {
    width: 44px;
    height: 39px;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
  }

  .docs-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 9px;
    background: var(--ink);
  }

  .docs-menu-button b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .docs-layout-shell,
  .docs-footer {
    width: calc(100% - 28px);
  }

  .docs-search-wrap {
    margin: 14px auto 5px;
  }

  .docs-search {
    min-height: 45px;
  }

  .docs-layout {
    display: block;
    padding-top: 10px;
  }

  /* Without JS the complete nav stays in document flow. JS upgrades it to a drawer. */
  .docs-navigation-wrap {
    position: static;
    max-height: none;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .docs-sidebar {
    max-height: none;
    padding: 17px;
  }

  .docs-enhanced .docs-navigation-wrap {
    position: fixed;
    z-index: 180;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 345px);
    max-height: none;
    margin: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: 18px 0 48px rgba(18, 21, 28, 0.18);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0.2s ease;
  }

  .docs-enhanced .docs-sidebar {
    height: 100%;
    max-height: none;
    padding: 18px 20px 40px;
  }

  .docs-enhanced .docs-sidebar-head {
    position: sticky;
    z-index: 2;
    top: -18px;
    margin: -18px -20px 16px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .docs-enhanced .docs-sidebar-head button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 1.35rem;
    cursor: pointer;
  }

  .docs-nav-open .docs-navigation-wrap {
    transform: translateX(0);
    visibility: visible;
  }

  .docs-backdrop {
    position: fixed;
    z-index: 170;
    inset: 0;
    background: rgba(18, 21, 28, 0.46);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .docs-nav-open {
    overflow: hidden;
  }

  .docs-breadcrumb {
    margin: 12px 0 20px;
    overflow: hidden;
  }

  .docs-breadcrumb ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .doc-title {
    padding-bottom: 25px;
  }

  .doc-title h1 {
    max-width: none;
    font-size: clamp(1.9rem, 10vw, 2.65rem);
  }

  .doc-lead {
    font-size: 0.99rem;
  }

  .doc-section,
  .doc-callout {
    margin-top: 35px;
  }

  .heading-anchor {
    display: none;
  }

  .doc-callout {
    padding: 17px 17px 15px;
  }

  .code-example pre {
    padding: 14px;
    font-size: 0.73rem;
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .endpoint-card,
  .command-card,
  .query-card {
    padding: 14px;
  }

  .endpoint-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .endpoint-meta {
    display: grid;
  }

  .option-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .doc-page-nav {
    grid-template-columns: 1fr;
  }

  .page-nav-next {
    align-items: flex-start;
    text-align: left;
  }

  .docs-footer {
    flex-direction: column;
  }

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

@media (max-width: 430px) {
  .docs-layout-shell,
  .docs-footer {
    width: calc(100% - 22px);
  }

  .docs-search kbd {
    display: none;
  }

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

  .method-grid {
    grid-template-columns: 1fr;
  }

  .reference-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    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 {
  @page {
    margin: 18mm;
  }

  .docs-header,
  .docs-search-wrap,
  .docs-navigation-wrap,
  .docs-toc,
  .docs-footer,
  .doc-page-nav,
  .related-topics,
  .code-toolbar button,
  .heading-anchor,
  .docs-backdrop {
    display: none !important;
  }

  .docs-layout-shell,
  .docs-main,
  .doc-section,
  .doc-callout {
    width: 100%;
    max-width: none;
  }

  .docs-layout {
    display: block;
    padding: 0;
  }

  .docs-body::before {
    display: none;
  }

  .doc-title h1 {
    font-size: 28pt;
  }

  .code-example {
    break-inside: avoid;
    border-color: #555;
    box-shadow: none;
  }

  .code-example,
  .code-toolbar,
  .code-example pre {
    background: #fff;
    color: #000;
  }

  .endpoint-card,
  .command-card,
  .query-card,
  .doc-callout,
  table {
    break-inside: avoid;
    box-shadow: none;
  }

  a[href^='http']::after {
    color: #555;
    font-size: 8pt;
    content: ' (' attr(href) ')';
  }
}
