/* ──────────────────────────────────────────────────────────────────────
   TRam Enterprise — light branding over Swagger UI's default look.
   Goal: keep the classic Swagger UI feel buyers recognise, but tint it
   so it doesn't look like the default Petstore demo.
   ────────────────────────────────────────────────────────────────────── */

/* Topbar: TRam navy instead of Swagger green/black */
.swagger-ui .topbar {
    background-color: #0C1F3F !important;
    border-bottom: 2px solid #C9A227;
    padding: 8px 0;
}

/* Hide the explore URL bar — we have one canonical spec */
.swagger-ui .topbar .download-url-wrapper {
    display: none;
}

/* Make the topbar logo area span the width */
.swagger-ui .topbar-wrapper {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Info section header — switch the Swagger blue to TRam navy */
.swagger-ui .info .title {
    color: #0C1F3F;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 600;
}
.swagger-ui .info .title small {
    background: #C9A227;
    color: #0C1F3F;
}

/* HTTP verb pills — adjust to a more polished palette */
.swagger-ui .opblock.opblock-get .opblock-summary-method {
    background: #2C5F8A;
}
.swagger-ui .opblock.opblock-post .opblock-summary-method {
    background: #047857;
}
.swagger-ui .opblock.opblock-delete .opblock-summary-method {
    background: #991b1b;
}

/* "Try it out" + execute buttons in TRam navy */
.swagger-ui .btn.try-out__btn,
.swagger-ui .btn.execute {
    background: #0C1F3F;
    color: #fff;
    border-color: #0C1F3F;
}
.swagger-ui .btn.try-out__btn:hover,
.swagger-ui .btn.execute:hover {
    background: #2C5F8A;
    border-color: #2C5F8A;
}

/* "Authorize" lock button — gold so it stands out (it matters) */
.swagger-ui .btn.authorize {
    background: #C9A227;
    color: #0C1F3F;
    border-color: #C9A227;
    font-weight: 600;
}
.swagger-ui .btn.authorize:hover {
    background: #d4b347;
    border-color: #d4b347;
}
.swagger-ui .btn.authorize svg {
    fill: #0C1F3F;
}

/* Operation blocks — softer borders */
.swagger-ui .opblock {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(12, 31, 63, 0.06);
}

/* "Back to agents" pill, anchored top-right of the page */
#tram-back-link {
    position: fixed;
    top: 14px;
    right: 24px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    background: #C9A227;
    color: #0C1F3F !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
#tram-back-link:hover {
    background: #d4b347;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
    #tram-back-link {
        top: 10px;
        right: 12px;
        font-size: 12px;
        padding: 6px 12px;
    }
}
