/* IWMI Water-Accounting Processing API — shared brand styles
 * Brand: IWMI primary blue #28537d
 */

:root {
    --iwmi-blue:        #28537d;
    --iwmi-blue-dark:   #1a3a5c;
    --iwmi-blue-light:  #4a78a8;
    --iwmi-blue-pale:   #e8f0f8;
    --iwmi-water:       #2b9eb3;
    --iwmi-accent:      #d97706;   /* amber, for highlights */
    --ink:              #1f2937;
    --ink-muted:        #6b7280;
    --paper:            #ffffff;
    --paper-soft:       #f8fafc;
    --rule:             #e5e7eb;
    --shadow-sm:        0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md:        0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg:        0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --radius:           10px;
    --font-sans:        ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono:        ui-monospace, "SF Mono", Monaco, Menlo, Consolas, "Courier New", monospace;
}

/* ── IWMI top bar (shared across landing / swagger / redoc) ─────────── */
.iwmi-topbar {
    background: linear-gradient(135deg, var(--iwmi-blue) 0%, var(--iwmi-blue-dark) 100%);
    color: #fff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.iwmi-topbar a.iwmi-logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.iwmi-topbar .iwmi-logo {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);  /* render the blue logo as white on the dark bar */
}

.iwmi-topbar .iwmi-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

.iwmi-topbar .iwmi-title .accent {
    opacity: 0.7;
    font-weight: 400;
}

.iwmi-topbar nav {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.iwmi-topbar nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.iwmi-topbar nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.iwmi-topbar nav a.active {
    background: rgba(255, 255, 255, 0.18);
}

/* ── CGIAR footer ribbon ────────────────────────────────────────────── */
.iwmi-footer {
    background: var(--paper-soft);
    border-top: 1px solid var(--rule);
    padding: 24px 32px;
    text-align: center;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 13px;
}

.iwmi-footer img {
    height: 28px;
    opacity: 0.85;
    vertical-align: middle;
    margin: 0 12px;
}

.iwmi-footer .iwmi-cgiar-note {
    margin-top: 10px;
}
