/* ============================================================
   api.css — API 服务文档页
   依赖 app.css 的设计变量与基础组件
   ============================================================ */

html { height: auto; overflow-x: hidden; }

body.api-page {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: var(--bg);
  font-size: 14px;
}

/* ---------- 顶栏 ---------- */

.api-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 245, 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
}

.api-topbar .brand { flex: 1 1 auto; min-width: 0; }
.api-topbar .topactions { margin-left: 0; }

.navlink.is-current {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
}
.navlink.is-current .ico { color: var(--brand); }

/* ---------- 布局 ---------- */

.api-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.api-side {
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 66px);
  overflow-y: auto;
  padding: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-group { display: flex; flex-direction: column; gap: 1px; }
.side-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 9px 7px;
}
.side-link {
  display: block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.side-link:hover { color: var(--ink); background: var(--cream); }
.side-link.is-active {
  color: var(--brand-ink);
  font-weight: 600;
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

.api-main {
  min-width: 0;
  max-width: 892px;
  padding: 38px 0 72px;
}

/* ---------- Hero ---------- */

.api-hero { padding-bottom: 8px; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.22;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin-top: 14px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-3);
}

.endpoint-pill {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-card);
  max-width: 620px;
}
.endpoint-pill .method {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(180deg, #c05a37, #b5502f);
  padding: 3px 7px;
  border-radius: 5px;
}
.endpoint-pill .path {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: none;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.pill-copy {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.pill-copy:hover { background: var(--cream); color: var(--brand); }
.pill-copy .ico { width: 14px; height: 14px; }
.pill-copy.is-done { color: #4d7a5b; }

.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}
.hero-stat {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat strong {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-ink);
  letter-spacing: -0.01em;
}
.hero-stat span { font-size: 11.5px; color: var(--muted); }

/* ---------- 能力卡 ---------- */

.feature-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feature-card {
  padding: 15px 16px 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.feature-ico {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 10px;
}
.feature-ico .ico { width: 15px; height: 15px; }
.feature-card h3 { font-size: 13px; font-weight: 640; color: var(--ink); margin-bottom: 6px; }
.feature-card p { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }

/* ---------- 章节 ---------- */

.doc-section {
  margin-top: 52px;
  scroll-margin-top: 84px;
}
.sec-head { margin-bottom: 18px; }
.sec-head h2 {
  font-size: 21px;
  font-weight: 660;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-lead {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* 正文内联代码 */
.api-main p code,
.api-main li code,
.api-main td code,
.api-main summary code,
.api-main .split-card code {
  font-family: var(--mono);
  font-size: 0.87em;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--brand-ink);
  white-space: nowrap;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  color: var(--brand-ink);
  font-weight: 550;
  border-bottom: 1px solid rgba(200, 100, 66, 0.28);
}
.inline-link:hover { border-bottom-color: var(--brand); }
.inline-link .ico { width: 12px; height: 12px; }

/* 步骤 */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.steps li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--border-soft);
}
.steps li:first-child { border-top: 0; padding-top: 4px; }
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 3px 6px;
  height: fit-content;
  flex: 0 0 auto;
}
.steps h4 { font-size: 13px; font-weight: 620; color: var(--ink); margin-bottom: 4px; }
.steps p { font-size: 12.5px; line-height: 1.75; color: var(--ink-3); }

/* ---------- 表格 ---------- */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: auto;
  background: #fff;
}
.doc-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.doc-table th {
  text-align: left;
  padding: 9px 13px;
  background: #f8f6ef;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.doc-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-2);
  line-height: 1.7;
  vertical-align: top;
}
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td code {
  white-space: normal;
  word-break: break-word;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: 1px;
}
.tag-req { background: var(--brand-soft); color: var(--brand-ink); }
.status-code {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ---------- 提示块 ---------- */

.callout {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fbfaf5;
}
.callout > .ico {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--muted);
  flex: 0 0 auto;
}
.callout strong { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 3px; }
.callout p { font-size: 12.5px; line-height: 1.75; color: var(--ink-3); }
.callout-warn { background: #fdf6f1; border-color: #f0dcd0; }
.callout-warn > .ico { color: var(--brand); }

/* ---------- 代码块 ---------- */

.code-wrap {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  background: #fbfaf6;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid var(--border);
  background: #f7f5ed;
}
.code-lang {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.code-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  transition: background 0.15s ease, color 0.15s ease;
}
.code-copy:hover { background: #fff; color: var(--brand); }
.code-copy.is-done { color: #4d7a5b; }
.code-copy .ico { width: 12px; height: 12px; }

.code-block {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.code-sm { font-size: 11.8px; line-height: 1.7; padding: 12px 14px; }

.code-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.code-tabs button {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.code-tabs button:hover { background: #fff; color: var(--ink); }
.code-tabs button.active {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 1px 2px rgba(48, 48, 46, 0.08);
}

/* 语法着色（复用 app.css 已有 token，补齐常用几类） */
.tok-str { color: #7a7f4f; }
.tok-num { color: #a9552f; }
.tok-bool { color: #7a527f; }
.tok-com { color: #b0aca0; font-style: italic; }
.tok-kw { color: #8a5a3f; font-weight: 600; }
.tok-fn { color: #4a6fa5; }

/* ---------- 调试台 ---------- */

.pg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.pg-form { display: flex; flex-direction: column; gap: 13px; min-width: 0; }

.pg-mode { display: flex; flex-direction: column; gap: 7px; }
.pg .segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--cream);
  width: fit-content;
}
.pg .segmented button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-3);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.pg .segmented button .ico { width: 13px; height: 13px; }
.pg .segmented button.active {
  background: #fff;
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(48, 48, 46, 0.1);
}
.pg-mode-hint {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-head { display: flex; align-items: baseline; gap: 7px; }
.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.field-tag { font-size: 10.5px; color: var(--muted-2); }
.field-hint { font-size: 10.5px; color: var(--muted-2); }

.field-input {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fdfdfb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input:focus-within {
  border-color: #ddb9a8;
  box-shadow: 0 0 0 3px rgba(200, 100, 66, 0.1);
}
.field-input input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.field-input input::placeholder { color: var(--muted-2); }
.field-btn {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink-3);
  background: var(--cream);
}
.field-btn:hover { background: var(--cream-2); color: var(--ink); }

.field textarea {
  width: 100%;
  min-height: 148px;
  max-height: 300px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fdfdfb;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink);
  resize: vertical;
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea:focus {
  border-color: #ddb9a8;
  box-shadow: 0 0 0 3px rgba(200, 100, 66, 0.1);
}

.field-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.field-foot button {
  font-size: 11px;
  color: var(--brand-ink);
  border-bottom: 1px solid rgba(200, 100, 66, 0.25);
  padding-bottom: 0.5px;
}
.field-foot button:hover { border-bottom-color: var(--brand); }
.field-count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; }

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

.select-wrap { position: relative; display: block; }
.select-wrap select {
  width: 100%;
  height: 32px;
  padding: 0 24px 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fdfdfb;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  appearance: none;
  -webkit-appearance: none;
  outline: 0;
  cursor: pointer;
}
.select-wrap select:focus {
  border-color: #ddb9a8;
  box-shadow: 0 0 0 3px rgba(200, 100, 66, 0.1);
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -1px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid var(--muted);
  pointer-events: none;
}

.req-preview {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfaf6;
  overflow: hidden;
}
.req-preview summary {
  padding: 7px 11px;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.req-preview summary::-webkit-details-marker { display: none; }
.req-preview summary::after {
  content: "＋";
  float: right;
  color: var(--muted-2);
}
.req-preview[open] summary::after { content: "－"; }
.req-preview[open] summary { border-bottom: 1px solid var(--border); }
.req-preview .code-block { background: none; max-height: 180px; overflow: auto; }

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

.btn-run {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  background: linear-gradient(180deg, #c05a37, #b5502f);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(140, 62, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-run:hover { filter: brightness(1.06); }
.btn-run:active { transform: translateY(0.5px); }
.btn-run[disabled] { opacity: 0.62; cursor: progress; }
.btn-run .ico { width: 13px; height: 13px; }

.pg-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  font-weight: 550;
  border: 1px solid var(--border);
  background: #fff;
}
.pg-actions .btn-ghost:hover { background: var(--cream); }
.pg-actions .btn-ghost .ico { width: 13px; height: 13px; color: var(--muted); }

/* 输出区 */
.pg-out {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfaf6;
  overflow: hidden;
  min-height: 430px;
}

.pg-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #f7f5ed;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.pg-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--muted-2);
  flex: 0 0 auto;
}
.pg-status.is-run .pg-dot { background: #d59b3f; animation: pg-pulse 1s ease-in-out infinite; }
.pg-status.is-ok .pg-dot { background: #5c8a6a; }
.pg-status.is-err .pg-dot { background: #c05a37; }
@keyframes pg-pulse { 50% { opacity: 0.35; } }

.pg-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--border);
  background: #f7f5ed;
}
.pg-tabs button {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  transition: background 0.15s ease, color 0.15s ease;
}
.pg-tabs button:hover { background: #fff; color: var(--ink); }
.pg-tabs button.active {
  background: #fff;
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(48, 48, 46, 0.08);
}
.pg-tabs-copy {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}
.pg-tabs-copy:hover { background: #fff; color: var(--brand); }
.pg-tabs-copy.is-done { color: #4d7a5b; }
.pg-tabs-copy .ico { width: 13px; height: 13px; }

.pg-pane { flex: 1 1 auto; overflow: auto; max-height: 480px; }
.pg-pane[hidden] { display: none; }
.pg-pane .code-block { background: none; }

.pg-render {
  padding: 14px;
  background: #fff;
  min-height: 100%;
}
.pg-render > section { max-width: 100%; }
.pg-empty { font-size: 12px; color: var(--muted); }

/* ---------- 分栏说明 ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.split-card {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.split-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.split-card h4 { font-size: 13.5px; font-weight: 620; color: var(--ink); margin-bottom: 6px; }
.split-card p { font-size: 12.5px; line-height: 1.75; color: var(--ink-3); }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--border-soft); }
.faq-list details { border-bottom: 1px solid var(--border-soft); }
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋";
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-2);
  transition: color 0.15s ease;
}
.faq-list details[open] summary::after { content: "－"; color: var(--brand); }
.faq-list details[open] summary { color: var(--brand-ink); }
.faq-list p {
  padding: 0 2px 15px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-3);
  max-width: 660px;
}

/* ---------- 页脚 ---------- */

.api-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.api-footer strong { font-size: 13px; color: var(--ink); }
.api-footer p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 9px; }
.footer-links .btn-ghost,
.footer-links .btn-api {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}
.footer-links .btn-api .ico { width: 14px; height: 14px; }
.footer-links .btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--ink-2); }
.footer-links .btn-ghost:hover { background: var(--cream); }
.footer-links .btn-ghost .ico { width: 14px; height: 14px; color: var(--muted); }

/* ---------- 离屏渲染沙箱 ---------- */

.api-sandbox {
  position: fixed;
  left: -20000px;
  top: 0;
  width: 640px;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
  .api-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 20px; }
  .api-side { display: none; }
  .api-main { padding: 28px 0 56px; max-width: 100%; }
}

@media (max-width: 860px) {
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg-out { min-height: 340px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .api-topbar { height: 58px; gap: 10px; padding: 0 12px; }
  .api-topbar .brand-desc { display: none; }
  .api-topbar .topnav { display: none; }
  .hero-title { font-size: 26px; }
  .hero-lead { font-size: 13px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .api-shell { padding: 0 14px; }
  .doc-section { margin-top: 40px; }
  .endpoint-pill .path { font-size: 11px; }
  .code-block { font-size: 11.5px; }
  .api-footer { flex-direction: column; align-items: flex-start; }
}
