/* Page-specific additions; the shared site styles stay in style.css. */
.bot-page .migu-in-chat {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
}

.bot-page h1 {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
}

.bot-page code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.bot-page .bot-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.bot-page .command-list {
  margin: 1rem 0;
  border-bottom: 1px solid #333;
}

.bot-page .command-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 1rem 0.75rem;
  border-top: 1px solid #333;
  transition: background-color 150ms ease;
}

.bot-page .command-list > div:hover {
  background-color: #111;
}

.bot-page .command-list code {
  display: block;
}

.bot-page .command-list code + code {
  margin-top: 0.25rem;
}

.bot-page .command-list dd {
  margin: 0;
}

.bot-page .bot-button {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border: 1px solid #555;
  background: #000;
  color: #fff;
  font: inherit;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.bot-page .bot-button:hover {
  border-color: #aaa;
  background-color: #111;
}

.bot-page .bot-button[hidden] {
  display: none;
}

.bot-page .bot-button:disabled {
  cursor: wait;
}

.bot-page .bot-button:focus-visible,
.bot-page pre:focus-visible {
  outline: 1px dashed currentColor;
  outline-offset: 4px;
}

.bot-page .example-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bot-page .example-heading h2 {
  margin: 0;
}

.bot-page pre {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid #333;
  overflow-x: auto;
}

.bot-page pre code {
  overflow-wrap: normal;
}

.bot-page #miku-says-copied {
  min-height: 1.6em;
  margin-top: 0.5rem;
}

@media (max-width: 40rem) {
  .bot-page .command-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-page .command-list > div,
  .bot-page .bot-button {
    transition: none;
  }
}
