/* The API docs page: a reading column with a contents list beside it, code in dark blocks. */
.api-docs { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; padding: 40px 0 96px; }
.api-docs-nav { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; font-size: 14px; }
.api-docs-nav summary { cursor: pointer; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #646d67; padding: 6px 0; list-style: none; }
.api-docs-nav summary::-webkit-details-marker { display: none; }
.api-docs-nav nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.api-docs-nav a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; color: #17201b; text-decoration: none; overflow-wrap: anywhere; font-size: 13px; }
.api-docs-nav a:hover { background: #ece8db; }
.api-docs-nav-group { margin: 14px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #646d67; }
.api-docs-main { min-width: 0; max-width: 860px; color: #17201b; }
.api-docs-header { padding-bottom: 28px; border-bottom: 1px solid #e6e4dc; }
.api-docs-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #b63619; }
.api-docs-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1.1; }
.api-docs-lede { margin: 16px 0 0; font-size: 1.1rem; line-height: 1.65; color: #455149; max-width: 680px; }
.api-docs-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.api-docs-kinds a { padding: 7px 14px; border-radius: 999px; border: 1px solid #d8d4c6; color: #17201b; text-decoration: none; font-size: 14px; font-weight: 600; }
.api-docs-kinds a[aria-current="page"] { background: #15231b; border-color: #15231b; color: #f7f5ee; }
.api-docs-section { padding: 36px 0 8px; border-bottom: 1px solid #e6e4dc; scroll-margin-top: 24px; }
.api-docs-section:last-child { border-bottom: 0; }
.api-docs-section h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.75rem; letter-spacing: -.02em; }
.api-docs-section h3 { margin: 26px 0 10px; font-size: 1.05rem; }
.api-docs-section p, .api-docs-section li { font-size: 1rem; line-height: 1.7; color: #2c3530; }
.api-docs-section ul, .api-docs-section ol { padding-left: 22px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.api-docs-section a { color: #17201b; }
.api-docs-section code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: #ece8db; padding: 1px 5px; border-radius: 5px; }
.api-docs-count { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; color: #646d67; margin-left: 6px; letter-spacing: 0; }
.api-docs-note { margin-top: -6px; color: #646d67 !important; }
.api-code { margin: 14px 0 18px; padding: 16px 18px; border-radius: 14px; background: #15231b; color: #e6ece7; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.api-code code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.api-code-pair { display: grid; grid-template-columns: 1fr; gap: 0; }
.api-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.api-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #646d67; padding: 8px 10px; border-bottom: 1px solid #d8d4c6; }
.api-table td { padding: 9px 10px; border-bottom: 1px solid #ece8db; vertical-align: top; line-height: 1.5; }
.api-params td:first-child { white-space: nowrap; }
.api-required { font-size: 11px; font-weight: 700; color: #b63619; text-transform: uppercase; letter-spacing: .04em; }
.api-endpoint { padding: 22px 0; border-top: 1px dashed #e0ddd2; scroll-margin-top: 24px; }
.api-endpoint:first-of-type { border-top: 0; }
.api-endpoint h3 { margin: 10px 0 6px; }
.api-endpoint-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.api-method { display: inline-block; min-width: 44px; text-align: center; padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: #e6f0e8; color: #1f5a33; }
.api-method.is-post { background: #fff1e6; color: #8a3b0a; }
.api-method.is-put { background: #eae8fb; color: #3b2f8a; }
.api-path { font-size: 15px !important; background: none !important; padding: 0 !important; font-weight: 600; overflow-wrap: anywhere; }
.api-tag { font-size: 12px; font-weight: 600; color: #8a3b0a; background: #fff6e8; border: 1px solid #f0d9ae; padding: 2px 8px; border-radius: 999px; }
.api-event { border: 1px solid #e6e4dc; border-radius: 12px; padding: 10px 14px; margin: 8px 0; background: #fffdf7; }
.api-event summary { cursor: pointer; font-size: 15px; }
.api-event .api-code { margin-bottom: 4px; }
@media (max-width: 900px) {
  .api-docs { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; }
  .api-docs-nav { position: static; max-height: none; border: 1px solid #e6e4dc; border-radius: 12px; padding: 8px 12px; background: #fffdf7; }
  .api-docs-nav a.is-endpoint, .api-docs-nav-group { display: none; }  /* sections only, on a phone */
  .api-params td:first-child { white-space: normal; }
  .api-table { display: block; overflow-x: auto; }
}
