@font-face {
  font-family: "MicroCloud Brush CJK";
  src: url("assets/MaShanZheng-MicroCloud-Docs.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF;
}

:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e7e1d5;
  --paper-soft: #faf8f2;
  --paper-raised: #f7f4ed;
  --ink: #111310;
  --ink-soft: #303a36;
  --ink-muted: #68706b;
  --line: rgba(17, 19, 16, 0.14);
  --line-strong: rgba(17, 19, 16, 0.24);
  --mineral-blue: #335d72;
  --mineral-green: #315b49;
  --seal: #a73a31;
  --amber: #866128;
  --code-bg: #171b18;
  --code-fg: #e8eadf;
  --code-muted: #aab2aa;
  --shadow: 0 14px 34px rgba(17, 19, 16, 0.07);
  --topbar-height: 68px;
  --sidebar-width: 292px;
  --brush: "MicroCloud Brush CJK", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151814;
  --paper-deep: #0f120f;
  --paper-soft: #1b1f1a;
  --paper-raised: #20251f;
  --ink: #eff1e8;
  --ink-soft: #ccd2c9;
  --ink-muted: #959e97;
  --line: rgba(239, 241, 232, 0.13);
  --line-strong: rgba(239, 241, 232, 0.24);
  --mineral-blue: #78a7bc;
  --mineral-green: #7caa91;
  --seal: #d7685f;
  --amber: #caa064;
  --code-bg: #0c0f0d;
  --code-fg: #eef0e8;
  --code-muted: #a9b2aa;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
  letter-spacing: 0;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

::selection {
  background: color-mix(in srgb, var(--seal) 24%, transparent);
  color: var(--ink);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.44;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  width: 100%;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  opacity: 0.9;
}

html[data-theme="dark"] .brand-mark {
  filter: invert(1);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--brush);
  font-size: 25px;
  font-weight: 400;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 11px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-link,
.icon-button,
.article-button,
.copy-button,
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.top-link {
  min-height: 40px;
  gap: 7px;
  padding: 0 13px;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.top-link-secondary {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
}

.top-link:hover,
.icon-button:hover,
.article-button:hover,
.back-to-top:hover {
  border-color: var(--ink-muted);
  transform: translateY(-1px);
}

.top-link-secondary:hover,
.icon-button:hover,
.article-button:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.top-link:not(.top-link-secondary):hover {
  background: var(--ink-soft);
  color: var(--paper);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mineral-blue);
  outline-offset: 3px;
}

.mobile-only {
  display: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--topbar-height);
}

.sidebar {
  position: fixed;
  z-index: 30;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--paper-raised);
}

.sidebar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 18px 14px;
  background: var(--paper-raised);
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-kicker {
  color: var(--seal);
  font-family: var(--brush);
  font-size: 25px;
}

.search-box {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-soft);
  color: var(--ink-muted);
}

.search-box:focus-within {
  border-color: var(--mineral-blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mineral-blue) 18%, transparent);
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--ink-muted);
}

.search-count {
  min-width: 24px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.doc-nav {
  flex: 1;
  padding: 2px 12px 24px;
}

.nav-group {
  padding: 10px 0 4px;
}

.nav-group + .nav-group {
  border-top: 1px solid var(--line);
}

.nav-group-title {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--brush);
  font-size: 19px;
  cursor: pointer;
  text-align: left;
}

.nav-group-title svg {
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  transition: transform 160ms ease;
}

.nav-group.is-collapsed .nav-group-title svg {
  transform: rotate(-90deg);
}

.nav-group-links {
  display: grid;
  gap: 2px;
}

.nav-group.is-collapsed .nav-group-links {
  display: none;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 7px 22px;
  border-radius: 5px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.nav-link:hover {
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.nav-link[aria-current="page"] {
  background: color-mix(in srgb, var(--mineral-green) 10%, var(--paper-soft));
  color: var(--mineral-green);
  font-weight: 600;
}

.nav-link[aria-current="page"]::before {
  width: 5px;
  height: 14px;
  border-radius: 1px;
  background: var(--mineral-green);
}

.nav-empty {
  padding: 34px 14px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}

.sidebar-foot {
  padding: 15px 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
}

.sidebar-foot p {
  margin: 0 0 10px;
}

.sidebar-backdrop {
  display: none;
}

.content {
  width: calc(100% - var(--sidebar-width));
  min-height: calc(100vh - var(--topbar-height));
  margin-left: var(--sidebar-width);
  overflow-x: hidden;
}

.article {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 52px 52px 100px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 21px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--mineral-blue);
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
}

.article-header {
  position: relative;
  padding: 0 82px 31px 0;
  border-bottom: 1px solid var(--line-strong);
}

.article-header::after {
  content: "微云";
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  transform: rotate(-4deg);
  border: 2px solid var(--seal);
  border-radius: 5px;
  background: color-mix(in srgb, var(--seal) 9%, transparent);
  color: var(--seal);
  font-family: var(--brush);
  font-size: 18px;
  line-height: 1;
}

.article-kicker {
  margin: 0 0 8px;
  color: var(--seal);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.article h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--brush);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.article-summary {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.9;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 17px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 11px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta svg {
  width: 13px;
  height: 13px;
}

.article-body {
  padding-top: 31px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  position: relative;
  margin: 45px 0 15px;
  padding-left: 17px;
  color: var(--ink);
  font-family: var(--brush);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.35;
}

.article-body h2::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 7px;
  left: 0;
  width: 4px;
  border-radius: 1px;
  background: var(--seal);
}

.article-body h3 {
  margin: 31px 0 11px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
}

.article-body h4 {
  margin: 24px 0 9px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.article-body p {
  margin: 11px 0;
}

.article-body strong {
  color: var(--ink);
}

.article-body a:not(.article-button):not(.overview-card) {
  color: var(--mineral-blue);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--mineral-blue) 34%, transparent);
  text-underline-offset: 3px;
}

.article-body code:not(pre code),
.inline-code {
  display: inline;
  padding: 0.12em 0.36em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-deep);
  color: var(--seal);
  font-family: var(--mono);
  font-size: 0.88em;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 2;
}

.brush-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  color: var(--ink);
  font-family: var(--brush);
  font-size: 25px;
  line-height: 1.6;
}

.overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.overview-copy p {
  margin: 0;
}

.overview-mark {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
}

.overview-mark::before,
.overview-mark::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.overview-mark::before {
  inset: 10px;
}

.overview-mark::after {
  inset: 23px;
}

.overview-mark span {
  position: relative;
  z-index: 1;
  font-family: var(--brush);
  font-size: 47px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.overview-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease;
}

.overview-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.overview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.overview-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--brush);
  font-size: 27px;
  font-weight: 400;
}

.overview-card-number {
  color: var(--seal);
  font-family: var(--mono);
  font-size: 11px;
}

.overview-card p {
  margin: 7px 0 14px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
}

.overview-card ul {
  display: grid;
  gap: 5px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 13px;
}

.overview-card li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.overview-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--mineral-green);
}

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

.endpoint-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
}

.endpoint-card .endpoint-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.endpoint-card .endpoint-label svg {
  width: 15px;
  height: 15px;
  color: var(--mineral-blue);
}

.endpoint-card strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.endpoint-card p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.65;
}

.steps {
  margin: 21px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: doc-step;
}

.step {
  position: relative;
  min-height: 88px;
  padding: 0 0 25px 54px;
  counter-increment: doc-step;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: counter(doc-step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--seal);
  border-radius: 50%;
  color: var(--seal);
  font-family: var(--brush);
  font-size: 19px;
}

.step::after {
  content: "";
  position: absolute;
  top: 41px;
  bottom: 5px;
  left: 17px;
  width: 1px;
  background: var(--line-strong);
}

.step:last-child::after {
  display: none;
}

.step h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.plain-list,
.check-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.plain-list li,
.check-list li {
  position: relative;
  padding-left: 24px;
}

.plain-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mineral-blue);
}

.check-list li::before {
  top: 0.58em;
  width: 10px;
  height: 6px;
  border-right: 2px solid var(--mineral-green);
  border-bottom: 2px solid var(--mineral-green);
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg);
}

.callout {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 12px;
  margin: 21px 0;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--callout-color) 28%, var(--line));
  border-left: 4px solid var(--callout-color);
  border-radius: 6px;
  background: color-mix(in srgb, var(--callout-color) 6%, var(--paper-raised));
}

.callout-info {
  --callout-color: var(--mineral-blue);
}

.callout-success {
  --callout-color: var(--mineral-green);
}

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

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

.callout > svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--callout-color);
}

.callout-title {
  margin: 0 0 3px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.callout-body {
  color: var(--ink-soft);
  font-size: 14px;
}

.callout-body p {
  margin: 5px 0;
}

.code-block {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 18px 0 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-fg);
  box-shadow: var(--shadow);
}

.code-toolbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--code-muted);
  font-family: var(--sans);
  font-size: 11px;
}

.code-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-width: 74px;
  min-height: 30px;
  flex: 0 0 auto;
  gap: 6px;
  padding: 0 9px;
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--code-muted);
  font-family: var(--sans);
  font-size: 11px;
}

.copy-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--code-fg);
}

.copy-button svg {
  width: 14px;
  height: 14px;
}

.code-block pre {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.code-block code {
  color: var(--code-fg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
}

.code-caption {
  padding: 0 18px 15px;
  color: var(--code-muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 19px 0 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
}

.doc-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-table th {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.doc-table td {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 22px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-raised);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 11px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 23px 0 8px;
}

.article-button {
  min-height: 42px;
  gap: 8px;
  padding: 0 14px;
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
}

.article-button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.article-button-primary:hover {
  background: var(--ink-soft);
  color: var(--paper);
}

.article-button svg {
  width: 16px;
  height: 16px;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.article-nav-link {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
}

.article-nav-link.next {
  text-align: right;
}

.article-nav-link:hover {
  border-color: var(--line-strong);
}

.article-nav-label {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.article-nav-title {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.back-to-top {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 268px;
  }

  .article {
    padding-right: 38px;
    padding-left: 38px;
  }

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

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

  .topbar {
    padding: 0 14px;
  }

  .top-link-secondary {
    display: none;
  }

  .sidebar {
    top: 0;
    z-index: 70;
    width: min(86vw, 330px);
    max-width: 330px;
    transform: translateX(-102%);
    transition: transform 190ms ease;
    box-shadow: 18px 0 44px rgba(0, 0, 0, 0.16);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-head {
    padding-top: 16px;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 9, 7, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .content {
    width: 100%;
    margin-left: 0;
  }

  .article {
    padding: 38px 25px 88px;
  }

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

@media (max-width: 560px) {
  :root {
    --topbar-height: 62px;
  }

  .topbar {
    gap: 8px;
    padding: 0 10px 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .brand-copy small {
    display: none;
  }

  .top-actions {
    gap: 5px;
  }

  .top-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .top-link svg {
    display: none;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .article {
    padding: 29px 20px 80px;
  }

  .breadcrumbs {
    margin-bottom: 16px;
  }

  .article-header {
    padding: 0 0 25px;
  }

  .article-header::after {
    display: none;
  }

  .article h1 {
    font-size: 38px;
  }

  .article-summary {
    font-size: 15px;
  }

  .article-body {
    padding-top: 25px;
  }

  .article-body h2 {
    margin-top: 38px;
    font-size: 29px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .lead {
    font-size: 16px;
  }

  .overview-intro {
    display: block;
  }

  .overview-mark {
    display: none;
  }

  .overview-card {
    min-height: 0;
    padding: 18px;
  }

  .endpoint-card {
    padding: 15px;
  }

  .step {
    padding-left: 46px;
  }

  .step::before {
    width: 30px;
    height: 30px;
  }

  .step::after {
    top: 37px;
    left: 15px;
  }

  .callout {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 9px;
    padding: 14px;
  }

  .callout > svg {
    width: 18px;
    height: 18px;
  }

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

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

  .doc-table,
  .doc-table tbody,
  .doc-table tr,
  .doc-table td {
    display: block;
    width: 100%;
  }

  .doc-table thead {
    display: none;
  }

  .doc-table tr {
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
  }

  .doc-table tr:last-child {
    border-bottom: 0;
  }

  .doc-table td {
    display: grid;
    grid-template-columns: minmax(82px, 0.34fr) minmax(0, 1fr);
    gap: 11px;
    padding: 6px 0;
    border: 0;
  }

  .doc-table td::before {
    content: attr(data-label);
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
  }

  .article-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-button {
    width: 100%;
  }

  .article-nav {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

  .article-nav-link.next {
    text-align: left;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
