/* Developer reference (/developers/mcp/). Loaded via extraCss, so it costs
   nothing on the ~16.5k pages that do not use it. Everything here is additive
   on top of seo.css — no overrides of shared classes. */

.dev-doc code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f4f4f7;
  border: 1px solid #e6e6ee;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  word-break: break-word;
}

/* Key facts, above the fold: the answers an integrator scans for. */
.dev-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem 2rem;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #fafaff;
  border: 1px solid #e6e6ee;
  border-radius: 10px;
}
.dev-facts div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.dev-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; font-weight: 700; }
.dev-facts dd { margin: 0; min-width: 0; }
.dev-facts dd code { background: none; border: none; padding: 0; font-size: 0.85rem; }

.dev-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.dev-toc a {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid #e0e0ea;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
}
.dev-toc a:hover { border-color: #6c5ce7; color: #6c5ce7; }

/* Code blocks scroll inside themselves — the page body never scrolls sideways. */
.dev-code {
  background: #1c1b29;
  color: #eceafd;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  line-height: 1.55;
  font-size: 0.85rem;
}
.dev-code code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  white-space: pre;
  font-size: inherit;
}
.dev-code-cta { text-align: left; max-width: 760px; margin-inline: auto; }

.dev-steps { list-style: none; padding: 0; counter-reset: step; }
.dev-steps > li { margin: 0 0 2rem; padding: 0 0 0 0.25rem; border-left: 2px solid #ece9ff; padding-left: 1.25rem; }
.dev-steps h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; font-size: 1.1rem; }
.dev-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; flex: none;
  background: #6c5ce7; color: #fff;
  border-radius: 50%; font-size: 0.85rem; font-weight: 700;
}

.dev-tool {
  border: 1px solid #e6e6ee;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem;
  scroll-margin-top: 5rem;
}
.dev-tool h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.dev-tool h3 code { background: none; border: none; padding: 0; font-size: 1em; color: #4b3fd6; }
.dev-tool-title { margin: 0 0 0.6rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: #888; font-weight: 700; }
.dev-tool-meta { list-style: none; padding: 0; margin: 0.75rem 0 0; font-size: 0.9rem; color: #444; }
.dev-tool-meta li { margin: 0.2rem 0; }
.dev-tool details { margin-top: 0.75rem; }
.dev-tool summary { cursor: pointer; font-size: 0.9rem; color: #6c5ce7; }
.dev-tool .dev-code { margin-bottom: 0; }

/* Wide tables scroll in their own box rather than widening the page. */
.dev-table { display: block; overflow-x: auto; white-space: normal; }
.dev-table td:first-child { white-space: nowrap; }

.dev-retry { font-size: 1.05rem; font-weight: 600; color: #333; }

@media (max-width: 640px) {
  .dev-facts { padding: 1rem; }
  .dev-code { font-size: 0.78rem; }
}
