/*
 * Swagger UI overrides - "our taste", kept in one place so the file can be reused as-is in other Itok APIs
 * (served as a static file, linked from the Swagger UI page via SwaggerUIOptions.InjectStylesheet).
 *
 * Swagger UI's own rules are fairly specific (e.g. ".swagger-ui .opblock .opblock-summary-...") - an override
 * needs at least the same specificity, otherwise the original wins even though this file loads later.
 */

/* Group (tag) header: title and expand-arrow on the first line, the group's description full-width on its own
   line under the title. By default the description is squeezed in between title and arrow. */
.swagger-ui .opblock-tag { flex-wrap: wrap; }
.swagger-ui .opblock-tag .expand-operation { order: 1; margin-left: auto; }
.swagger-ui .opblock-tag > small { order: 2; flex: 0 0 100%; padding: 6px 0 0 0; font-size: 14px; }

/* Operation: the summary always under the path. By default it sits next to the path when it fits and under it
   when it does not, which looks inconsistent. */
.swagger-ui .opblock .opblock-summary-path-description-wrapper { flex-flow: column nowrap; align-items: flex-start; gap: 2px 0; }

/* Inline code in descriptions (e.g. a field name written as <c>Reference</c> in the XML comments): bold italic in
   the normal text colour and font, no background - instead of Swagger UI's purple monospace on grey, which is too busy. */
.swagger-ui .markdown code,
.swagger-ui .renderedMarkdown code { color: inherit; font: inherit; font-weight: 700; font-style: italic; background: none; padding: 0; border-radius: 0; }
