:root {
  --coral: #d96c5d;
  --coral-dark: #bd574b;
  --coral-soft: #fff3f0;
  --ink: #292d35;
  --muted: #6f747d;
  --line: #e7e5e3;
  --soft: #f7f7f6;
  --code: #19212d;
  --green: #16835e;
  --amber: #a66a10;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.72; }
a { color: var(--coral-dark); text-decoration: none; }
button, input { font: inherit; }

.docs-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 90px;
  display: grid;
  grid-template-columns: 195px minmax(0, 760px);
  gap: 54px;
  justify-content: center;
}
.docs-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 115px);
  overflow: auto;
  padding-right: 13px;
}
.docs-toc strong { display: block; margin-bottom: 10px; color: #9b9b9b; font-size: 10px; letter-spacing: 1.25px; text-transform: uppercase; }
.docs-toc a {
  display: block;
  margin: 2px 0;
  padding: 6px 9px;
  border-left: 2px solid transparent;
  color: #777b83;
  font-size: 12px;
  line-height: 1.35;
}
.docs-toc a:hover, .docs-toc a.active { border-left-color: var(--coral); color: var(--coral-dark); background: var(--coral-soft); }

.docs-content { min-width: 0; }
.docs-hero { padding: 3px 0 29px; border-bottom: 1px solid var(--line); }
.docs-kicker { margin: 0 0 7px; color: var(--coral-dark); font-size: 11px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
.docs-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 44px); line-height: 1.14; letter-spacing: -1.4px; font-weight: 620; }
.docs-updated { margin: 8px 0 0; color: #8a8e96; font-size: 12px; }
.docs-summary { max-width: 650px; margin: 19px 0 0; color: #555b65; font-size: 16px; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.docs-actions a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: #515760; font-size: 11px; font-weight: 750; }
.docs-actions a.primary { border-color: var(--coral); color: white; background: var(--coral); }

.docs-section { padding: 35px 0 7px; }
.docs-section > h2 { margin: 0 0 18px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 25px; line-height: 1.3; font-weight: 540; letter-spacing: -.4px; }
.docs-section h3 { margin: 29px 0 9px; font-size: 18px; line-height: 1.4; font-weight: 610; }
.docs-section h4 { margin: 22px 0 7px; font-size: 14px; }
.docs-section p { margin: 10px 0; }
.docs-section ul, .docs-section ol { padding-left: 22px; }
.docs-section li { margin: 6px 0; }
.docs-section code:not(pre code) { padding: 2px 5px; border-radius: 4px; color: #c55266; background: #fff4f5; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.journey {
  margin: 20px 0 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.journey-item {
  min-width: 0;
  padding: 16px 13px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #faf9f8);
}
.journey-item:last-child { border-right: 0; }
.journey-item span {
  width: 25px;
  height: 25px;
  margin-bottom: 11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--coral);
  font-size: 10px;
  font-weight: 850;
}
.journey-item strong { display: block; font-size: 12px; line-height: 1.35; }
.journey-item small { margin-top: 5px; display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }

.endpoint-list {
  margin: 14px 0 24px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.endpoint-list > a,
.endpoint-list > div {
  min-width: 0;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(150px, .72fr);
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.endpoint-list > :last-child { border-bottom: 0; }
.endpoint-list > a:hover { background: var(--coral-soft); }
.endpoint-list code { min-width: 0; overflow-wrap: anywhere; }
.endpoint-list small { color: var(--muted); font-size: 11px; }
.endpoint-list.compact { margin-bottom: 12px; }

.callout { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--coral); background: var(--coral-soft); color: #5d5352; }
.callout strong { display: block; margin-bottom: 3px; color: #8e453d; font-size: 12px; }
.callout.warning { border-color: #d39934; background: #fff8e9; }
.callout.warning strong { color: #88590d; }
.callout.success { border-color: var(--green); background: #eef9f5; }
.callout.success strong { color: var(--green); }

.endpoint {
  margin: 17px 0 20px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  overflow: auto;
}
.method { flex: 0 0 auto; min-width: 48px; padding: 4px 7px; border-radius: 4px; color: white; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .4px; }
.method.get { background: #3778be; }
.method.post { background: var(--green); }
.endpoint code { color: #31363f !important; background: transparent !important; font-size: 12px !important; white-space: nowrap; }

.code-block { position: relative; margin: 12px 0 20px; }
.code-label {
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  color: #96a1af;
  background: #111822;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.copy-button {
  position: absolute;
  top: 5px;
  right: 6px;
  padding: 4px 8px;
  border: 1px solid #354052;
  border-radius: 5px;
  color: #aeb8c7;
  background: #222c3b;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}
.copy-button:hover, .copy-button.copied { color: white; border-color: #66758b; }
pre {
  margin: 0;
  padding: 17px;
  overflow: auto;
  border-radius: 0 0 8px 8px;
  color: #d8e1ed;
  background: var(--code);
  font: 12px/1.68 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2;
}
pre code { font: inherit; }
.token-key { color: #8ec8ff; }
.token-string { color: #b8df9b; }
.token-number { color: #f3bd7c; }
.token-comment { color: #7f8998; }

.param-table { width: 100%; margin: 15px 0 22px; border-collapse: collapse; font-size: 12px; }
.param-table th { padding: 9px 10px; border-bottom: 1px solid #d8d6d3; color: #737780; background: #fafafa; text-align: left; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; }
.param-table td { padding: 11px 10px; border-bottom: 1px solid #eceae8; vertical-align: top; }
.param-table td:first-child { white-space: nowrap; }
.required { color: var(--coral-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.deprecated { color: var(--amber); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 16px 0 22px; }
.status-item { padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.status-item code { display: inline-block; margin-bottom: 4px; }
.status-item p { margin: 0; color: var(--muted); font-size: 12px; }

.steps { list-style: none; padding: 0 !important; counter-reset: docs-step; }
.steps li { position: relative; min-height: 36px; padding: 4px 0 13px 45px; counter-increment: docs-step; }
.steps li::before {
  content: counter(docs-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: 11px;
  font-weight: 850;
}

.checklist {
  margin: 17px 0 24px;
  display: grid;
  gap: 8px;
}
.checklist label {
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfbfa;
  cursor: pointer;
  font-size: 12px;
}
.checklist input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--coral);
}
.faq-list { margin: 16px 0 22px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 15px 34px 15px 2px;
  position: relative;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 13px;
  color: var(--coral-dark);
  font-size: 20px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -3px 34px 16px 2px; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .docs-shell { display: block; width: min(720px, calc(100% - 30px)); padding-top: 25px; }
  .docs-toc { position: static; max-height: none; margin: 0 0 27px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fafafa; }
  .docs-toc a { display: inline-block; margin-right: 5px; border-left: 0; border-bottom: 2px solid transparent; }
  .docs-toc a:hover, .docs-toc a.active { border-left-color: transparent; border-bottom-color: var(--coral); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-item { border-bottom: 1px solid var(--line); }
  .journey-item:nth-child(2n) { border-right: 0; }
  .journey-item:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .docs-shell { width: calc(100% - 28px); }
  .docs-hero h1 { font-size: 31px; }
  .docs-section { padding-top: 30px; }
  .docs-section > h2 { font-size: 22px; }
  .endpoint { align-items: flex-start; flex-direction: column; gap: 7px; }
  .status-grid { grid-template-columns: 1fr; }
  .param-table { display: block; overflow-x: auto; }
  .journey { grid-template-columns: 1fr; }
  .journey-item { border-right: 0; }
  .endpoint-list > a,
  .endpoint-list > div { grid-template-columns: 52px minmax(0, 1fr); }
  .endpoint-list small { grid-column: 2; }
}
