/* ==========================================================
   R19.9 — Project Overview visual overhaul
   ========================================================== */

.project-hero {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
    width: 100%;
    margin: 18px 0 24px !important;
    padding: 20px;
    border: 1px solid rgba(123, 180, 252, .20);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(13, 40, 69, .88), rgba(5, 18, 33, .98));
    box-shadow: 0 15px 34px rgba(0, 0, 0, .20);
}

.project-show-poster {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(128, 187, 255, .22);
    border-radius: 12px;
    background: #08182b;
    aspect-ratio: 2 / 3;
}

.project-show-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-show-poster > div {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #dbeaff;
    background: linear-gradient(135deg, #153a66, #09192c);
    font-size: 48px;
    font-weight: 900;
}

.project-show-info {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 2px;
}

.project-show-info .eyebrow {
    margin: 0 0 8px !important;
    color: #82b6ff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .11em;
}

.project-show-info h2 {
    margin: 0 !important;
    color: #f4f8ff !important;
    font-size: 34px !important;
    line-height: 1.08;
}

.project-alt-title {
    margin: 8px 0 14px !important;
    color: #a9c3e8 !important;
    font-size: 14px;
}

.project-show-info > .status-pill {
    display: inline-flex !important;
    align-items: center;
    min-height: 27px;
    margin: 0 6px 10px 0;
    padding: 0 9px;
    border: 1px solid rgba(101, 219, 174, .34);
    border-radius: 999px;
    color: #d6ffeb !important;
    background: rgba(31, 151, 111, .16);
    font-size: 10px;
    font-weight: 900;
}

.project-show-info > p:not(.eyebrow):not(.project-alt-title) {
    max-width: 760px;
    margin: 8px 0 22px !important;
    color: #b5cae8 !important;
    font-size: 13px;
    line-height: 1.65;
}

.project-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(128, 181, 250, .15);
}

.project-actions a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
}

.project-actions .primary-link {
    order: -1;
    min-width: 145px;
}

/* Details */
.details-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, .85fr);
    gap: 18px;
    margin: 0 0 18px !important;
}

.details-grid > .panel,
.module-ready {
    border: 1px solid rgba(123, 180, 252, .20) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(12, 35, 60, .88), rgba(5, 18, 33, .98)) !important;
    overflow: hidden;
}

.details-grid > .panel > .panel-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px !important;
    border-bottom: 1px solid rgba(125, 181, 250, .14);
    background: linear-gradient(90deg, rgba(43, 105, 194, .17), rgba(6, 20, 35, .04));
}

.details-grid > .panel > .panel-head .eyebrow,
.module-ready .eyebrow {
    margin: 0 0 4px !important;
    color: #83b7ff !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .11em;
}

.details-grid > .panel > .panel-head h3,
.module-ready h3 {
    margin: 0 !important;
    color: #f1f7ff !important;
    font-size: 17px !important;
}

.detail-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 !important;
    padding: 16px 18px 18px !important;
}

.detail-list > div {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(126, 179, 250, .14);
    border-radius: 9px;
    background: rgba(3, 14, 28, .42);
}

.detail-list dt {
    margin-bottom: 5px;
    color: #96b5dd !important;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #edf5ff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

/* Team */
.team-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.team-row strong {
    display: block;
    color: #eef5ff !important;
    font-size: 12px;
}

.team-row small {
    display: block;
    margin-top: 3px;
    color: #9bb8dd !important;
    font-size: 10px;
}

.vault-user-initial {
    display: grid !important;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 9px;
    color: #eaf3ff !important;
    background: linear-gradient(135deg, #4b8ff0, #2754a5);
    font-size: 12px;
    font-weight: 900;
}

/* Vault CTA */
.module-ready {
    position: relative;
    margin-top: 18px !important;
    padding: 21px !important;
}

.module-ready > p:not(.eyebrow) {
    max-width: 720px;
    margin: 10px 0 18px !important;
    color: #a8c1e2 !important;
    font-size: 12px;
    line-height: 1.65;
}

.module-ready a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0 7px 0 0;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none !important;
}

@media (max-width: 980px) {
    .project-hero {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .project-hero,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .project-hero {
        padding: 14px;
        gap: 18px;
    }

    .project-show-poster {
        width: min(280px, 100%);
        justify-self: center;
    }

    .project-show-info h2 {
        font-size: 26px !important;
    }

    .detail-list {
        grid-template-columns: 1fr;
        padding: 13px !important;
    }

    .project-actions a,
    .module-ready a {
        flex: 1 1 145px;
    }
}
