/* developers.html, the API reference (scripts/render-api.mjs): on top of styles.css, solutions.css and need.css */
.dev-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; padding-block: 64px 56px; }
.dev-hero h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.055em; margin: 0 0 20px; }
.dev-facts { margin: 0; padding: 8px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.dev-facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dev-facts > div:last-child { border-bottom: 0; }
.dev-facts dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.dev-facts dd { margin: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }

/* the side menu stays in view: main must not clip (solutions.css hides overflow for its hero art) */
.dev-page main { overflow: visible; }
.dev-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 24px 80px; border-top: 1px solid var(--line); }
.dev-nav { position: sticky; top: 108px; display: grid; gap: 1px; max-height: calc(100vh - 128px); padding: 24px 6px 24px 0; overflow-y: auto; font-size: 13px; }
.dev-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); line-height: 1.4; }
.dev-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.dev-nav-top { margin-top: 10px; color: var(--ink) !important; font-weight: 700; }
.dev-nav-top:first-child { margin-top: 0; }
.dev-nav-sub { padding-left: 20px !important; font-size: 12.5px; }

.dev-content { min-width: 0; padding-top: 24px; }
.dev-content > section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 108px; }
.dev-content > section:last-child { border-bottom: 0; margin-bottom: 0; }
.dev-content h2 { font-size: clamp(30px, 3vw, 40px); margin: 0 0 18px; letter-spacing: -.045em; }
.dev-content h3 { margin: 36px 0 10px; font-size: 21px; letter-spacing: -.03em; scroll-margin-top: 108px; }
.dev-content h4 { margin: 26px 0 10px; font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dev-content p, .dev-content li { color: #3f5560; font-size: 15px; line-height: 1.75; }
.dev-content p { margin: 0 0 14px; max-width: 760px; }
.dev-content ul, .dev-content ol { margin: 0 0 16px; padding-left: 20px; max-width: 760px; display: grid; gap: 8px; }
.dev-lead { font-size: 16px !important; color: var(--muted) !important; }
.dev-steps { counter-reset: step; list-style: none; padding: 0 !important; gap: 14px !important; margin-bottom: 22px !important; }
.dev-steps li { position: relative; padding-left: 44px; counter-increment: step; }
.dev-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; font: 700 13px/28px var(--display); text-align: center; }
.dev-note { margin-top: 18px !important; padding: 14px 16px; border-radius: 12px; background: #fdf1dc; color: #7a5210 !important; font-size: 14px !important; }
.dev-content .int-code { margin: 16px 0; max-width: 100%; }

/* one call */
.dev-ep { margin: 28px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; scroll-margin-top: 108px; }
.dev-ep > header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.dev-method { padding: 4px 9px; border-radius: 7px; font: 700 11.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.dev-method.get { background: #e3f4ea; color: #17774a; }
.dev-method.post { background: var(--brand-soft); color: var(--brand); }
.dev-method.put { background: #fdf1dc; color: #9a6208; }
.dev-page main .dev-ep > header code.dev-path { padding: 0; background: none; color: var(--ink); font: 600 14.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.dev-access { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dev-access.write { background: #fde8e5; color: #b3342b; }
.dev-ep h3 { margin: 0 0 8px; font-size: 22px; }
.dev-ep > p { margin-bottom: 4px; }
.dev-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.dev-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dev-table th, .dev-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.dev-table tbody tr:last-child th, .dev-table tbody tr:last-child td { border-bottom: 0; }
.dev-table thead th { background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dev-table tbody th { width: 34%; font-weight: 500; white-space: nowrap; }
.dev-table td:nth-child(2) { width: 13%; color: var(--muted); white-space: nowrap; }
.dev-table td { color: #3f5560; }
.dev-req, .dev-in { display: block; margin-top: 3px; font: 600 11px var(--body); color: #b3342b; white-space: normal; }
.dev-in { color: var(--muted); font-weight: 500; }
.dev-examples { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 22px; align-items: start; }
.dev-examples .int-code { margin: 0; }
.dev-changes { margin: 0 0 22px; }
.dev-changes > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.dev-changes dt { font: 600 14px var(--display); }
.dev-changes dd { margin: 0; color: #3f5560; font-size: 14.5px; line-height: 1.7; }

@media (max-width: 1100px) {
  .dev-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 40px; }
  .dev-layout { grid-template-columns: 1fr; gap: 0; }
  .dev-nav { position: static; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .dev-nav-sub { display: none; }
  .dev-nav-top { margin-top: 0; }
  .dev-examples { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dev-hero h1 { font-size: 38px; }
  .dev-facts { padding: 4px 18px; }
  .dev-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .dev-content > section { padding-bottom: 40px; margin-bottom: 40px; }
  .dev-ep { padding: 20px 16px; border-radius: 16px; }
  .dev-access { margin-left: 0; }
  .dev-table tbody th { white-space: normal; width: 38%; }
  .dev-table th, .dev-table td { padding: 10px; font-size: 13px; }
  .dev-table td:nth-child(2) { display: none; }
  .dev-table thead th:nth-child(2) { display: none; }
  .dev-changes > div { grid-template-columns: 1fr; gap: 4px; }
}

/* mcp.html: the example conversation in the hero, and tables on a page without the reference's side menu */
.mcp-chat { justify-self: end; width: min(100%, 500px); display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 30px 70px #142d331a; }
.mcp-q { justify-self: end; max-width: 86%; margin: 0; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--brand); color: #fff; font-size: 14.5px; line-height: 1.5; }
.mcp-a { padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--paper); }
.mcp-a p, .mcp-a li { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.6; }
.mcp-a ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.mcp-tool { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 11.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.mcp-chat .need-sample { margin-top: 0; }
.mcp-page .int-limits .dev-table table { table-layout: fixed; }
.mcp-page .int-limits .dev-table th:first-child { width: 31%; }
.mcp-page .int-limits .dev-table thead th:nth-child(2), .mcp-page .int-limits .dev-table td:nth-child(2) { width: 19%; white-space: normal; }
.mcp-page .int-limits .dev-table thead th:nth-child(3) { width: 50%; }
.mcp-page .int-security { margin-top: 90px; }
@media (max-width: 1100px) { .mcp-chat { justify-self: center; width: min(100%, 560px); } }
@media (max-width: 760px) { .mcp-chat { padding: 16px; border-radius: 20px; } .mcp-page .int-limits .dev-table td:nth-child(2) { display: table-cell; } .mcp-page .int-limits .dev-table thead th:nth-child(2) { display: table-cell; } }
