/* DokWiki: the "Try it with curl" boxes of an OpenAPI document shown on a page (openapi.js). Colours come from
   dokwiki.css's tokens, so light and dark follow the site. */
.doc .oa-try {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin: 0.4rem 0 2rem;
}
.doc .oa-try > summary {
  cursor: pointer;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  color: var(--link);
}
.doc .oa-try[open] > summary {
  border-bottom: 1px solid var(--border-soft);
}
.doc .oa-form {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.4rem 0.8rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
}
.doc .oa-form label,
.doc .oa-form .oa-label {
  font-size: 0.9em;
  color: var(--fg-muted);
  font-family: var(--mono);
}
.doc .oa-form input,
.doc .oa-form select,
.doc .oa-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9em;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
}
.doc .oa-form textarea {
  font-family: var(--mono);
  min-height: 5.5rem;
  resize: vertical;
}
.doc .oa-form input:focus,
.doc .oa-form select:focus,
.doc .oa-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 0;
}
.doc .oa-hint {
  grid-column: 2;
  margin-top: -0.2rem;
  font-size: 0.8em;
  color: var(--fg-muted);
}
.doc .oa-fixed {
  font-size: 0.9em;
}
.doc .oa-try pre {
  margin: 0 0.8rem 0.8rem;
}
@media (max-width: 640px) {
  .doc .oa-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc .oa-hint {
    grid-column: 1;
  }
}
