/*
 * Alianza-specific styling for the Swagger UI doc site.
 *
 * Loaded after swagger-ui.css and index.css (which are unmodified files from the Swagger UI
 * distribution). Keep all local overrides here so upgrading Swagger UI stays a file swap.
 */

/* Set the header color. */
.swagger-ui .topbar,
html.dark-mode .swagger-ui .topbar {
    background-color: #0072BC;
}

/* Replace the Swagger logo (an inline SVG rendered by Swagger UI) with the Alianza logo. */
.swagger-ui .topbar a.link svg {
    display: none;
}

.swagger-ui .topbar a.link::before {
    content: url("../images/Alianza-wt-logo.png");
    display: block;
    line-height: 0;
}

/* Hide the form containing the spec URL input field and Explore button. */
.swagger-ui .topbar .download-url-wrapper {
    display: none;
}

/* With the form hidden, keep the dark-mode toggle pinned to the right. */
.swagger-ui .topbar .dark-mode-toggle {
    margin-left: auto;
}
