/*
 * SE4-4437: fix for the Swagger UI bundled with Swashbuckle.AspNetCore 10.
 *
 * Its swagger-ui.css sets `container-type: inline-size` on `.swagger-ui`. A container establishes a containing
 * block for position:fixed descendants, so the Authorize dialog (`.dialog-ux`, position:fixed) sized and centered
 * itself against the whole document instead of the window: it opened in the middle of a very tall page and jumped
 * out of view once a key was accepted.
 *
 * The container is switched off on the root and created again on the parts the responsive rules query
 * (`@container swagger-ui (max-width: ...)`: the top bar and the operation sections). The dialog lives in
 * `section.schemes`, so it is never inside a container.
 */
.swagger-ui {
    container-type: normal !important;
}

.swagger-ui .topbar,
.swagger-ui section.block:not(.schemes) {
    container: swagger-ui / inline-size;
}
