/* Developer reference: reuse the website palette, with a quiet reading layout. */
html:has(body.developer) { scroll-behavior: auto; }
.developer { font-size: 15px; line-height: 1.8; }
.developer h1, .developer h2, .developer h3, .developer h4 { color: var(--navy); line-height: 1.4; }
.developer h1 { font-size: 36px; letter-spacing: -.025em; margin: 0 0 20px; }
.developer h2 { font-size: 25px; margin: 48px 0 18px; scroll-margin-top: 108px; }
.developer h3 { font-size: 19px; margin: 30px 0 16px; }
.developer h4 { font-size: 15px; margin: 24px 0 12px; }
.developer p { margin: 12px 0; max-width: 75ch; }
.developer a { color: var(--blue-dark); text-underline-offset: 4px; }
.developer button, .developer input, .developer select { font: inherit; }
.developer button { cursor: pointer; }
.developer :is(button, input, select, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.developer [hidden] { display: none !important; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 44px 88px; align-items: start; }
.docs-sidebar { position: sticky; top: 116px; max-height: calc(100dvh - 140px); overflow-y: auto; padding: 0 12px 20px 0; font-size: 13px; }
.docs-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.docs-sidebar nav a { padding: 7px 12px; text-decoration: none; border-radius: 4px; color: var(--copy); }
.docs-sidebar nav a:hover { background: var(--soft); color: var(--blue-dark); }
.docs-sidebar nav a[aria-current="page"] { color: var(--blue-dark); font-weight: 650; background: var(--sky); }
.page-toc { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.page-toc summary { font-weight: 650; color: var(--navy); cursor: pointer; padding: 8px 12px; }
.page-toc nav a { font-size: 12px; overflow-wrap: anywhere; }
.sidebar-download { display: block; padding: 24px 12px 8px; font-weight: 600; }
.doc-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.doc-meta a { text-decoration: none; }
.docs-content { min-width: 0; overflow-wrap: anywhere; }
.docs-content > h1 + p { font-size: 17px; color: var(--muted); }
.docs-content :is(ul, ol) { padding-left: 24px; }
.docs-content li { margin-block: 8px; }
.docs-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
.docs-content p code { background: var(--soft); border-radius: 3px; padding: 2px 4px; }
.docs-content pre { position: relative; padding: 24px 20px; background: #f3f6fa; border: 1px solid #dbe4ed; border-radius: 5px; overflow-x: auto; line-height: 1.7; tab-size: 2; color: #12344e; }
.docs-content pre:has(.copy-code) { padding-top: 44px; }
.docs-content pre code { overflow-wrap: normal; font-size: 12px; }
.copy-code { position: absolute; right: 10px; top: 8px; padding: 3px 9px; background: white; color: var(--blue-dark); border: 1px solid #bbcbd9; border-radius: 4px; font-size: 12px !important; min-height: 28px; }
.copy-code:hover { background: var(--sky); }
.docs-content table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; margin: 18px 0 24px; }
.docs-content th { background: var(--soft); color: var(--navy); font-weight: 650; }
.docs-content th, .docs-content td { padding: 12px 14px; border-bottom: 1px solid var(--stroke); vertical-align: top; overflow-wrap: anywhere; }
.table-scroll { width: 100%; overflow-x: auto; }
.table-scroll table { margin-block: 0 18px; }
.table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.docs-content blockquote { margin: 20px 0; padding: 14px 22px; background: var(--sky); border: 1px solid #cbdeee; border-radius: 4px; }
.docs-content details { border-bottom: 1px solid var(--stroke); }
.docs-content summary { cursor: pointer; padding: 14px 0; color: var(--navy); }
.api-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; background: var(--soft); border: 1px solid var(--stroke); border-radius: 6px; padding: 22px; margin-top: 28px; align-items: end; }
.api-filters { scroll-margin-top: 108px; }
.api-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--copy); min-width: 0; }
.api-search { grid-column: 1 / -1; }
.api-filters :is(input, select) { width: 100%; min-width: 0; background: white; color: var(--navy); border: 1px solid #a9bac8; border-radius: 4px; padding: 9px 10px; min-height: 42px; font-size: 13px; }
.api-filters input::placeholder { color: #536b7e; }
.api-filters button { border: 1px solid #9bb1c2; color: var(--blue-dark); border-radius: 4px; padding: 9px 12px; background: white; min-height: 42px; font-size: 13px; }
.api-filters button:hover { background: var(--sky); }
.api-count { font-size: 13px; color: var(--muted); padding-block: 4px; }
.api-empty { padding: 28px; background: var(--soft); border-radius: 6px; }
.api-empty h3 { margin-top: 0; }
.api-group { margin-top: 36px; }
.group-count { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }
.api-operation { scroll-margin-top: 110px; border-top: 1px solid var(--stroke); }
.api-operation + .api-operation { border-top: 0; }
.api-operation > summary { display: flex; align-items: start; gap: 16px; padding: 18px 12px; list-style: none; }
.api-operation > summary::-webkit-details-marker { display: none; }
.api-operation > summary::after { content: "+"; color: var(--blue-dark); font-size: 19px; margin-left: auto; line-height: 1.2; }
.api-operation[open] > summary::after { content: "−"; }
.api-operation > summary:hover, .api-operation[open] > summary { background: var(--soft); }
.http-method { display: inline-flex; justify-content: center; font: 650 11px/1.5 ui-monospace, SFMono-Regular, monospace; border: 1px solid #aacabc; border-radius: 4px; padding: 3px 7px; color: #155e49; background: #eaf5ef; min-width: 49px; margin-top: 1px; }
.http-method.post { border-color: #b8cde5; color: #174f90; background: #eaf2fc; }
.operation-heading { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 5px; }
.operation-heading code { font-size: 13px; word-break: break-word; }
.operation-heading > span { color: var(--muted); font-size: 12px; }
.operation-mode { font-size: 11px; white-space: nowrap; color: #4b6476; padding-top: 3px; }
.operation-content { padding: 6px 18px 24px; }
.operation-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 0 10px; font-size: 12px; color: var(--muted); }
.operation-meta code { color: var(--navy); font-size: 12px; }
.operation-meta .permalink { margin-left: auto; }
.access-note, .example-note { font-size: 13px; }
.schema summary { font-size: 13px; }
.tool-reference { padding-top: 8px; }
.tool-reference h2 { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 30px; }
  .api-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .docs-sidebar { position: static; max-height: none; overflow: visible; padding: 0; border-bottom: 1px solid var(--stroke); }
  .docs-sidebar > nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .docs-sidebar > nav a { padding: 7px 10px; }
  .page-toc { margin-top: 12px; padding-top: 8px; }
  .page-toc nav { padding-bottom: 16px; }
  .sidebar-download { padding: 14px 12px 18px; }
  .developer h1 { font-size: 30px; }
}
@media (max-width: 600px) {
  .developer { font-size: 14px; }
  .developer h2 { font-size: 23px; }
  .api-filters { padding: 16px; gap: 12px; }
  .api-search { grid-column: 1 / -1; }
  .api-operation > summary { gap: 10px; padding: 16px 4px; }
  .operation-mode { display: none; }
  .operation-content { padding-inline: 4px; }
  .operation-heading code { font-size: 11px; }
  .docs-content td, .docs-content th { padding: 10px 8px; }
  .docs-content pre { padding-inline: 12px; }
  .docs-content table { min-width: 380px; }
  .api-operation table, .tool-reference table { min-width: 580px; }
  .table-scroll::after { content: "左右滑动查看完整表格"; display: block; color: var(--muted); font-size: 12px; padding-bottom: 10px; }
  .copy-code { min-height: 32px; }
}
@media print {
  .brand-nav, .brand-footer, .docs-sidebar, .api-filters, .copy-code { display: none; }
  .docs-layout { display: block; width: 100%; padding: 0; }
  .docs-content pre { white-space: pre-wrap; }
  .api-operation { break-inside: avoid; }
}
