/* api-docs.css — styles used only by api.html. Kept out of styles.css so the
 * game's stylesheet stays about the game. */

.doc { max-width: 60rem; margin: 0 auto; padding: 1.2rem 0.4rem 3rem; display: block; }
.doc-hero h2 { margin: 0 0 0.5rem; font-size: 1.7rem; }
.doc-hero p { line-height: 1.65; }
.brandlink { color: inherit; text-decoration: none; }

.doc-sec {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.2rem;
  margin-top: 1.1rem;
  box-shadow: var(--shadow);
}
.doc-sec h3 { margin: 0 0 0.6rem; font-size: 1.12rem; display: flex; align-items: center; gap: 0.5rem; }
.doc-sec p { line-height: 1.65; margin: 0.5rem 0; }
.doc-sec ul { line-height: 1.7; padding-left: 1.2rem; }

.stepnum {
  flex: none;
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

.endpoint code {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.86rem;
  word-break: break-all;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
p code, td code, li code {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05rem 0.3rem;
  font-size: 0.86em;
}

pre {
  margin: 0;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.55;
}
pre code { background: none; border: none; padding: 0; }

.code-group { margin: 0.7rem 0 0.3rem; }
.lang-tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.lang-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: inherit;
}
.lang-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lang-tabs button:hover { border-color: var(--accent); }

.result { margin-top: 0.6rem; }
.result pre { background: var(--bg); }
.result p { font-size: 0.9rem; color: var(--muted); }

.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; }
.doc-table th, .doc-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
.doc-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
