/* Shared chrome across all demo apps.
   Sits above each demo's own header and links back into the main site.

   The demos do not share one palette: the forecasting dashboard is light and reuses
   the marketing colours, while the recommender and job search apps are dark. So this
   bar wears the *site's* brand gradient rather than any individual demo's theme —
   it belongs to the website, and it reads as chrome against both backgrounds. */

.demo-nav {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.demo-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.demo-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.demo-nav-brand:hover {
    opacity: 0.85;
}

.demo-nav-brand .back-arrow {
    font-size: 0.85rem;
    opacity: 0.8;
}

.demo-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    flex-wrap: wrap;
}

.demo-nav-links a {
    display: block;
    padding: 6px 14px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.demo-nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.demo-nav-links a.active {
    background: #ffffff;
    color: #1e40af;
    font-weight: 600;
}

@media (max-width: 720px) {
    .demo-nav-inner {
        gap: 12px;
    }

    .demo-nav-links {
        margin-left: 0;
        width: 100%;
    }

    .demo-nav-links a {
        padding: 6px 10px;
        font-size: 0.82rem;
    }
}
