/* Styles for this API article; the site's existing knowledge-base template stays in use. */
.kbase-layout { grid-template-columns: 300px minmax(0, 1fr); }
.kbase-content { min-width: 0; }
.tgbot-api-docs { min-width: 0; max-width: 100%; }
.tgbot-api-docs h2 {
  margin: 32px 0 12px;
  color: var(--color-navy, #172554);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}
.tgbot-api-docs .api-status {
  padding: 12px 16px;
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  border-radius: 4px;
  color: #1e3a8a;
  font-size: 14px;
}
.tgbot-api-docs a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.tgbot-api-docs code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .88em;
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 4px;
  overflow-wrap: anywhere;
}
.tgbot-api-docs pre {
  margin: 16px 0 24px;
  padding: 18px 20px;
  overflow-x: auto;
  max-width: 100%;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.55;
}
.tgbot-api-docs pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
}
.tgbot-api-docs table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 14px; }
.tgbot-api-docs th, .tgbot-api-docs td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}
.tgbot-api-docs th { background: #f8fafc; color: #0f172a; font-weight: 600; }
@media (max-width: 900px) { .kbase-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) {
  .tgbot-api-docs th, .tgbot-api-docs td { padding: 8px 6px; font-size: 13px; }
  .tgbot-api-docs pre { padding: 14px; }
}
