* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}
body {
  margin: 0;
}
a {
  color: var(--accent-text);
  text-decoration: none;
}
button,
input {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--header-background);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
}
.mark {
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px 11px;
  border-radius: 10px;
}
.brand span {
  color: var(--muted);
}
.brand small {
  font-weight: 400;
  color: var(--muted);
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.topbar nav .active {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
.layout {
  max-width: 1420px;
  margin: auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 55px;
  padding: 0 40px;
}
.sidebar {
  height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
  overflow: auto;
  padding: 32px 20px 30px 0;
  font-size: 13px;
  scrollbar-width: thin;
}
.sidebar > a,
.sidebar nav a {
  display: block;
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 6px;
}
.sidebar a:hover,
.sidebar a.current {
  color: var(--accent-text);
  background: var(--accent-soft);
}
#product-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#product-nav a[hidden] {
  display: none;
}
.product-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  border-radius: 4px;
}
.product-nav-fallback {
  display: grid;
  place-items: center;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-size: 10px;
}
.product-nav-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-title {
  display: flex;
  justify-content: space-between;
  margin: 30px 12px 12px;
}
.side-title span {
  color: var(--muted);
}
.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#search {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px;
  background: var(--surface);
  margin-bottom: 12px;
}
#no-results {
  padding: 10px;
  color: var(--muted);
}
main {
  min-width: 0;
  max-width: 960px;
  padding-bottom: 40px;
}
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.hero {
  padding-top: 58px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent-text);
  margin: 0 0 20px;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 15px 0 20px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 12px 0 18px;
}
h3 {
  font-size: 15px;
  margin-top: 28px;
}
p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.lead {
  font-size: 17px;
  max-width: 690px;
}
.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 30px 0;
}
.primary {
  background: var(--accent);
  border-radius: 7px;
  color: var(--ink);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
}
.download {
  font-size: 14px;
}
.stats {
  display: flex;
  gap: 64px;
  margin: 40px 0 0;
}
.stats div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats b {
  font-size: 25px;
}
.stats span,
.meta {
  font-size: 12px;
  color: var(--muted);
}
.codebox {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}
.codebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 17px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font:
    12px ui-monospace,
    Consolas,
    monospace;
  gap: 10px;
}
.codebar button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}
.codebar button:hover {
  background: var(--surface-3);
}
pre {
  font:
    12px/1.9 ui-monospace,
    Consolas,
    monospace;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 20px;
  color: var(--ink-soft);
}
.response {
  color: var(--ink-soft);
  background: var(--surface-2);
  border-radius: 8px;
}
.endpoint {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.endpoint span {
  color: var(--accent-text);
  background: var(--accent-soft);
  font:
    700 11px ui-monospace,
    monospace;
  padding: 6px 9px;
  border-radius: 5px;
}
.endpoint code {
  font-size: 14px;
}
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin: 20px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  min-width: 520px;
}
td,
th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
th {
  background: var(--surface-2);
  font-weight: 500;
  color: var(--muted);
}
td:last-child {
  color: var(--muted);
}
tr:last-child td {
  border: 0;
}
.required {
  color: var(--warning);
}
.optional {
  color: var(--muted);
}
.note {
  font-size: 12px;
}
.flow {
  padding: 18px;
  background: var(--surface-2);
  color: var(--accent-text);
  border-radius: 8px;
  line-height: 2;
  font:
    12px/2 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.product-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-code {
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
  margin: 0;
}
.badge {
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.warning {
  background: #f5a52410;
  color: var(--warning);
}
.muted {
  background: var(--surface-3);
  color: var(--muted);
}
.notice {
  background: #f5a52410;
  border-left: 3px solid var(--warning);
  padding: 14px 18px;
  color: var(--warning);
  font-size: 13px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  padding: 40px 0;
}
#copy-status {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  z-index: 10;
}
#copy-status:empty {
  display: none;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    padding: 0 22px;
  }
  .stats {
    gap: 30px;
  }
  h1 {
    font-size: 34px;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 0 16px;
    height: 64px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand small,
  .brand span {
    display: none;
  }
  .topbar nav {
    gap: 12px;
    font-size: 12px;
  }
  .layout {
    display: block;
    padding: 0 18px;
  }
  .sidebar {
    position: static;
    height: auto;
    max-height: 270px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .eyebrow {
    display: none;
  }
  .sidebar > a {
    display: inline-block;
    padding: 7px;
  }
  .side-title {
    margin-top: 15px;
  }
  #product-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-top: 34px;
  }
  h1 {
    font-size: 32px;
  }
  .stats {
    justify-content: space-between;
    gap: 10px;
  }
  .product-title {
    align-items: flex-start;
  }
  h2 {
    font-size: 22px;
  }
  .codebar {
    font-size: 10px;
  }
  .endpoint code {
    font-size: 12px;
  }
}
