﻿.projects-page .muted {
    color: var(--mud-palette-text-secondary);
}

.sticky-sidenav {
    position: sticky;
    top: 16px;
}

.project-link {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
}

    .project-link:hover {
        background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.pipeline-badge {
    display: inline-block;
    margin-top: 8px;
    image-rendering: -webkit-optimize-contrast;
    height: 22px;
}

/* Make the badge link not underline everything on hover */
.badge-link {
    text-decoration: none;
}

@media (max-width: 900px) {
    .sticky-sidenav {
        position: static;
    }
}


.project-detail-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start; 
}

/* Let the details take remaining space and be shrinkable */
.project-detail-card {
    flex: 2 1 0;
    min-width: 0;
}

/* Keep the image at a sane, responsive width on the right */
.project-detail-preview {
    flex: 0 0 auto;
    width: clamp(100px, 14vw, 280px); /* min, preferred (viewport-based), max */
    top: 16px;
}

.project-detail-preview-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
    .project-detail-layout {
        flex-direction: column;
    }

    .project-detail-preview {
        width: 100%;
        position: static;
    }
}